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: The type field indicates the type of model you create
There are five types that are Record, API, Aggregate, and Item
Select the type from the dropdown menu
Record Count: Record counts indicate which record should be created
There are two types of records, Singlerecord and Multirecord
Select the record count from the dropdown menu
Is Shared?:
Object Def: You can link the object with the model
The complete list of objects in your instance is displayed
Select the obj def from the dropdown
Offset:
Limit: Set the limit for how many records you want to display at a time
Order By: Order by allows you to enter any criteria
Click on the + icon
Fill in the information, click Save
Field name: All field names will display that which is present in the object
Select the field name from the dropdown menu
Sort As: Arranging the data in a particular format
There are two types of sorting
Ascending: Elements are arranged from lowest to the highest value
Descending: Elements are arranged from highest to the lowest value
Select the option 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: MergeField is a Field element containing a reference to a data field by its name
Message Body: Fill in that with whatever message you want
Click the Criteria tab
Click on the Filter + icon
Filter: Filter criteria allow you to compare records from one object to records from another
Field Name: Names of fields that are present in the object
You can add criteria to that field
select the field name from the dropdown menu
Operator: The operator is a character that represents a specific mathematical or logical action
Select the operator from the dropdown menu
Equals: Used to compare two values
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
Such as Field, Variable, Model, Static, Cookie, LocalStorage, QueryParam, User
Variables:
Select the variables 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