OmniStudio OmniScript Advanced Concepts
Amit Chaudhary

Amit Chaudhary

Amit Chaudhary is Salesforce Application & System Architect and working on Salesforce Platform since 2010. He is Salesforce MVP since 2017 and have 17 Salesforce Certificates. He is a active blogger and founder of Apex Hours.

OmniStudio OmniScript Advanced Concepts

In the last session, we learned about the basics of OmniStudio OmniScript. Today we will talk about OmniStudio OmniScript advanced concepts like Types of OmniScript Components Available, Troubleshooting Tips, OmniScript Lightning Web Components and Remote Action.

Creating an OmniScript

When you create an OmniScript, you specify: Type, SubType, Language, name, LWC Enabled OmniScript. Combination of Type, SubType, Language is the unique identifier (not the OmniScript’s name). We need to drag components from the Build Panel to the Canvas and configure
them in the Properties Panel. Series of elements execute on the server in the specified order. Runtime Document Object Model (DOM) maintained in JSON format and updated at each element execution.

Creating an OmniScript

Types of OmniScript Components Available

Available components are listed by type based on the kind of functionality they perform.

Element TypeWhat is it for?
ActionsTo call on other tools to perform various actions such as getting or saving data, calculating, sending an email, and so on
DisplayTo enhance the usability of the UI, including text and images to display on the screen
FunctionsTo perform calculations within the OmniScript, show conditional messages, and provide geolocation
GroupsTo group items together on the UI
InputsFor system or user input or selection
OmniScriptsFor reusable OmniScripts

Troubleshooting Tips

There are two way to troubleshooting the OmniScript in OmniStudio.

Data JSON

Use Data JSON tab to view the data structure formed by JSON code. From here you can confirm keys and their values. You can use icon to copy entire JSON code. If you want to reset the data then refresh the page.

Action Debugger

Action Debugger displays a searchable log of every action that runs. Expand nodes to see the data
being sent to and returned from the Salesforce or external server. Copy icons can be used to copy
JSON for pasting into a JSON editor.

You can use the Action Debugger to check each service call is being sent the correct data and
confirm the results are as expected.

The JSON shows the values sent to the service. For example, the option may be set to get the value dynamically. In the debugger, you can confirm the actual value sent at runtime in the preview

Remote Action

Remote Action is used to call a desired provided service in OmniStudio. We used to send data JSON as input. For this element, the signature goes into Remote Class, Remote Method, and Remote Option Key/Value pairs.

Specifying a Lightning Web Component in OmniScript

Add Custom Lightning Web Component (Custom LWC) component in a step

Recording

Summary

I hope this session/post helped you to understand the OmniStudio OmniScript Advance concepts like debugging the omniscript and remote action. If you are new to OmniStudio then check our complete free Training on Salesforce OmniStudio.

Share this article

2 Comments

  • We are considering the use of Omni Studio. We also use Social Studio which as we all know will be phased-out in next 2 or 3 years. Would it be logical/anticipated that Omni-Studio would take on the functionality of Social Studio as a replacement?

  • Hi Frederick,

    The social studio is a social media management tool in the marketing cloud. In contrast, Omnistudio is a tool to build digital experience (business process, UX and services) on the Salesforce platform.
    These tools address different use cases and are not interchangeable.

Leave a reply

Keep in Touch

Subscribe for Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 3,230 other subscribers

Search

Our Supporter

RECENT POSTS

Apex Hours

Apex Hours is one stop platform to learn Salesforce skills and technology

Join our Newsletter and get tips and tricks how to explore the salesforce for free!