Apply Data Modeling to a Module

Estimated Reading Time:   4 minutes


Once you have your JSON JSON (JavaScript Object Notation) is an open standard file and data interchange format. Unqork uses JSON for submission (record) data. Schemas uploaded and binded to a Data Model, you can apply them to a module in the same workspace. After you upload your schemas, the Data Model creates a relationship between your schema and module(s). That way, the schemas map to components you can add to your modules. When a Data Model is applied to a module, you can access, edit, and organize the schema fields on the Module Builder canvas.

TIP  To learn more about component mapping, view our JSON Schema Component Mapping article.

What You'll Learn

In this article, you'll learn how to apply an Unqork Data Model in a module.

Binding a Data Model to a Module

Before you can apply a Data Model to a module, you must first create a module-type application.

NOTE  WORM Storage is not currently supported by the Data Model feature. Module-type applications with WORM Storage enabled might encounter errors.

To bind your Data Model to a module:

1. In Workspaces view, navigate to and select the Workspace that contains the Data Model you want to apply.
2. In the  Applications tab of your workspace, select or create the module application where you want to apply your Data Model.
3. In the  Modules tab of your application, select the  (ellipsis) icon of the module where you want to apply your Data Model.
4. Select   Settings.
5. From the Data Models drop-down, enter or select the Data Model(s) you want to apply.

IMPORTANT  You can apply multiple Data Models to a module. Confirm your Data Models do not conflict or have overlapping properties.

6. Select Save.

Customizing a Module Using Your Data Model

Unqork lets use a codeless approach to structuring your Data Models inside any module they're bound to.

To add your schema fields to your module

1. In Workspaces view, navigate to and select the Workspace that contains your module application.
2. In the  Applications tab, select the module application where you want to apply your Data Model.
3. In your module application, select the module where you applied your Data Model.
4. Above the component tray to the left of the Module Builder, select Data. Your Data Models and schema fields display.
5. Drag and drop your schema fields from the menu onto the canvas.

6. Save your module.

Modifying Data Model Fields in the Module Builder

When you add a schema to your module, the component mapped to your schema displays on the canvas. You can move or edit the component as long as the settings are available.

TIP  To learn more about schema mapping, view our Upload, Modify, and Publish JSON Schemas article.

Open the configuration window for a component mapped to your schema to view the Data Model attributes. Data Model attributes let you view how the Data Model and schemas map to the component. Attributes include the Field Name, Data Model, and Type.

Attribute Description

Field Name

The field path of the Data Model.

Data Model

The name of the attributed Data Model.


The data type used to map to the component.

Data Model Validation

Unqork Data Modeling also lets you enforce JSON Schema validation in your Data Models. When an end-user End-users, also known as Express Users, are the individuals accessing an application through Express View. In most cases, end-users are the customers using the product. submits a record (or submission) in Express View Express View is how your end-user views you application. Express View also lets you preview your applications to test your configuration and view the styling. This is also the view your end-users will see when interacting with your application. After configuring a module, click Preview in the Module Builder to interact with the module in Express View., the application validates against the JSON Schema and returns an error if the validation fails. You can enforce this validation on individual field entries or modules if a required field is missing.

In this example, the Creator Also known as Unqork Users, or Designer Users; is anyone who is inside the Unqork platform. is building an application that itemizes case numbers. To submit the record, the application must include a case ID and name. If the end-user does not enter these values, the following error message displays: 

If the Creator does not add these fields to the module for the end-user to submit the record, the error message also displays once the record is submitted.