You are here:
Preview and Test an Omniscript
View the Omniscript's appearance and functionality by previewing the Omniscript in the Omniscript Designer.
- In your Omniscript, click Preview.
-
For additional preview options, select these properties:
Context ID If your Omniscript doesn’t have a Set Values Action that defines a ContextId, to preview the form with test data, enter a record ID.
Using Set Values Action to set the context ID only works in preview.
Confirm that a Context Id is defined in your data source. For example, if you have an Omnistudio Data Mapper Extract Action that gets account records, you must have an Input Parameter whose Data Source is ContextId, and whose Filter Value is the Data Mapper Extract's output name, such as AccountId.
Preview Device To preview how your Omniscript appears on different devices, select Mobile, Tablet, or Desktop.
Fields are arranged in a single column on mobile, even if you have put them side by side for the desktop version.
Theme Preview your Omniscript with a Lightning or Newport theme. Reset data fields To reset data fields in your Omniscript after making changes, click the reload icon. - In the Debug panel, view the JSON data in the Data JSON.
- If needed, click the clipboard icon to copy the full JSON.
- To open the debug console, click Action Debugger.
- Search for an action name in the Search field.
- To copy a specific node, click the clipboard icon next to the node. For example, copy Remote Options in an Omnistudio Data Mapper Extract Action.
-
If needed, clear the debug console. To repopulate the debug console with new action
request and response data, click
.
-
To hide the Data JSON and Action Debugger, click X.
To display the Data JSON and Action again, click the debug panel button that appears when the panel closes.
If you see the error "Omniscript is either inactive or has not been deployed," the Omniscript is too large. The Lightning web component for an Omniscript can't be larger than 4 MB because of a payload data limit with Aura components. In the designer on a managed package, download the Omniscript LWC to check its size.
When you preview an Omniscript with a child Omniscript with a custom CSS, the content for the child Omniscript doesn't show the custom styling.

