Models are used to display content in the layout
Typically used for record creation or editing, as well as various types of messaging
A Model needs to be added when you perform any action in an event
There are 2 types of Model
Single Record Model:
The single record model is generally used when only a single record needs to be displayed at a time
MultiRecord Model:
The multi-record model is used when multiple records need to be displayed at a time
Model Creation
Create a MultiRecord model
Go to the Model tab
Click on the + icon
Enter information, click Save
Click Details tab
Label: Label is used to identify the model at the UI
Name: Name is the unique identifier of the model
Type: Select the type from the dropdown menu i.e. Record, API, Aggregate, and Item
Record Count: Select the record count from the dropdown menu i.e Singlerecord and Multirecord
Is Shared?:
Object Def: Select the obj def from the dropdown that you want to bind the model to
Offset:
Limit: Set the limit for how many records you want to display at a time
Order By:
Click on the + icon
Fill in the information, click Save
Field name: Select the field name from the dropdown menu
Sort As: Select the option Ascending or Descending from the dropdown menu
Click Fields tab
Select the field. These fields are added to the selected fields
These selected fields are added to the model
Click the UI Fields tab
Click New button
Enter Label & Name, click on the Config icon
Enter information, click Save
Field Source: Select the field source from the dropdown menu
Field:
Variable:
Model:
Static:
Cookie:
LocalStorage:
QueryParam:
User:
Merge Field Expression:
Message Body:
Click the Criteria tab
Click on the Filter + icon
Filter:
A model filter contains a list of Model Conditions
You can filter your models by using the Filter
Field Name: Select the field name from the dropdown menu for which you want to add criteria
Operator: Select the field name from the dropdown menu.
Equals: Used to compare two values or expressions
NotEquals: Checks whether two values are not equal
start with: Checks any string that starts with
Contains: Indicates a search for any of the specified words within a particular attribute
EndsWith: String ends with the specified value
In: Allows you to easily test if an expression matches any value in a list of values
Source Type: Select the source type from the dropdown menu, e.g. Field, Variable, Model, Static, Cookie, LocalStorage, QueryParam, User
Variables: Select the variable from the dropdown menu, e.g. Record Id
Click Save
Return to the layout page
A Model is created
Model Addition
Select a Multi Record Model
In the basic config, Click + icon
Add the Model and click Save
For a Single record Model, the same procedure is used.
Context Models
A Context model is created by using a multi-record model
It acts as a single record model
Models Creation
Click on the + icon
Create Models and click Save
Criteria
Criteria determine the conditions under which the criteria apply
When the given criteria in the form are completed, then the criteria are fired
Using source types, you can add criteria in the form
Source Type
On which destination do you won't compare your criteria
There are multiple source types available
Static:
Input:
Variable:
Click + icon
Create Variable, click Save
Label:
Name:
Field Type:
Required:
Is Array:
Default Value:
Variable Scope:
Cookie:
Context:
Create Criteria
Click on the + icon
Add Criteria, click Save