Omniscript
Omniscript
Elements in Omniscript
Build Elements:
Actions
Display
Functions
Groups : Action Block, Block, Edit Block, Radio Group, Step, Type Ahead Block.
Inputs : Text, Text Area, checkbox,currency, custom LWC, Date, Date/Time,
Time, Disclosure, Email, File, Image, Lookup Multi-Select, Number,
Password, Radio , Range, select, Telephone, URL
Omniscripts
Text:
For Text Elements we can give Name, fieldLabel, default Value, min,max length,
Date:
Name
Field Label
Place Holder
Default Value
Minimum Date : we cant select before date for ex:01-03-2025: it means we
can select date after 01-03, we cant select before it
Maximum Date : Today Keyword is used to select date till today current date
and before date.
Checkbox:
Name, label name
Default value and read only is available
Default is false
Disclosure:
Radio:
Display mode : vertical horizontal, image and button
Open source: custom , manual , Sobject
sObject source: by using source we can access any object picklist values
in source field we have to give Api name of object and field(Ex: Account.Rating,
student__c.id__c)
for object : Account.Rating
for Apex :className.methodName and we have to implements an Interface to
class
Ex :
global class getPicklistValue implements OmniStudio.vLocityOpenInterface
here OmniStudio is package name
for object select sObject
for apex select custom
select : we can display object picklist value as radio but display mode is not
available because it display as dropdown
in format options :
custom Mask : we can give decimal numbers our own
format override decimal places
2 or 3 whatever u can give
And also we have
Minimum currency value and Maximum Currency value
We can check
Allow Negative Numbers
Hide Comma Seperators
Display currency code
To change currency code we can apply currency code in Setup (Properties right
side)
Range:
It contains Name, Field Label, Default Value, Mask, step , Minimum Value,
Maximum Value
Time:
It contains Name, Field Label, Placeholder, Required, Read only, Default Value,
Minimum Time , Maximum Time, Time Format (hh:mm a) , Time Interval
URL:
It contains Name, Field Label, Placeholder, Required, Read only, Default Value
Lookup:
Allows users to search for and select records from a list or database.
Configure the lookup to pull data from a specific Salesforce object (like
Accounts, Contacts, Products) or other sources.
It contains Name , Field Lable, Placeholder, Required, Read Only, Clear Value,
Default Value, open source Type( custom, sObject, Picklist Filtered By Record
Type), source
For custom
For SObject
Add lookup query
Preview and search lookup
Line break:
it contains Name, additional padding px(ex: 30)
text Block:
It contains Name , text
omniscript
elements.pdf
Go to omniscription dropdown tab search for data mappers
Click on new
Save it
To retrieve the data follow below steps
Next go to preview
Click edit as params and give key value pair like
Key:AccountId value:001IU00002phUa9YAE and execute it, u will get below
data
Related object
If you want to get account owner data
Click on Related object select
Account.Owner
In search field you can see the data select and move it
Account.Username
Go to preview and execute
Extract mapper contains
Extract, Formulas, Output, Options, Preview
Go to extract do following
In Output click + icon
Give the Output JSON Path any Name
Output
Go to preview and execute
Formulas in extract
Requirement is to show today date
Click on add formula
In output
You can give any Output JSON path name and you can give Output data type
Output
preview
Load DataRaptor
Here we are creating new contact record with the Load DataRaptor
Add Fields
Give Input JSON path and Domain Object Field
Go to preview and add JSON in Input to execute
Go to preview
Give the account Name and contact as an Array of list as given below
Execute it and you can see 1 Account and 3 Contacts are created
For Contacts
In preview
If Rating Cold
To add country code to phone number we can use Formula
Transform
Formulas
Go to transform
Add Formula Result path in Transform field
In Preview add PhoneNumber in JSON input and execute
Next scenario
when json input coming from different different objects ,so how to collect in
single object
go to transform field