You are here:
Done Action (Managed Package)
For the managed package runtime, the Done Action ends the Omniscript and returns the user either to where the script was launched or a custom URL. This page explains the settings to configure for the Done Action.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
LWC Omniscripts do not support the Done Action. For information on how to navigate from an LWC Omniscript, see Navigate Action (Managed Package).
-
Option Source:
-
To redirect to a Salesforce object, select SObject.
-
To redirect to a URL, select URL.
-
To redirect to an HTML template, select Redirect.
-
-
Source:
-
If redirecting to an SObject, enter %ContextId% to redirect to the record from which the script launched.
-
If redirecting to a URL, enter the page and parameters. For example, MyTestPage?Id=%ContextId% would redirect to an internal page and http://www.vlocity.com will redirect to an external page.
NoteBeginning with Vlocity Summer '19, you can pass percentage signs in the URL by replacing the percentage sign in the URL with the variable $Vlocity.Percent.
-
Beginning with Vlocity Insurance and Vlocity Health Summer 2018, when redirecting to a Visualforce page URL from a Lightning container, use the ltng: prefix. For example, ltng:/apex/CustomVFPage will redirect to a Visualforce page.
-
Beginning with Vlocity Insurance and Vlocity Health Summer 2018, when redirecting to a Lightning or Lightning Community page URL, apply the ltngpage: prefix. For example, ltngpage:/Home will redirect to the community home page.
-
-
Redirect Page Name and Redirect Template URL:
-
If you selected Redirect, enter the page name and template URL that the Omniscript will redirect to when the action runs into the Redirect Page Name and Redirect Template URL fields.
-
-
Outcome:
-
If event tracking is enabled, specifies the value to be logged in the event tracking object. You can use merge fields to specify the value to be assigned. For more information, see Tracking Omniscripts, Cards, and Integration Procedures.
-
-
Console Tab Label:
-
Modifies the text that displays in the label of the console tab. By default, this is set to New.
-
-
openInPrimaryTab: Omniscript's open in SubTabs by default. Make the Done Action open a Primary tab by taking these steps:
-
In the Done Action, click Edit JSON.
-
Set the openInPrimaryTab property to true.
"openInPrimaryTab": true
-
- Done Action Properties (Managed Package)
For the managed package runtime, this page contains information on Done Action Properties.
