Professional Documents
Culture Documents
LWC OmniScript
Exercise Guide
Legal Notice
USE OF OUR EDUCATIONAL SERVICES, COURSES, AND TRAINING MATERIALS (COLLECTIVELY REFERED
TO AS “EDUCATIONAL SERVICES”) IS CONDITIONED UPON THE ACCEPTANCE OF THESE TERMS BY YOU
(ALSO REFERRED TO AS “PARTICIPANT”). BY DOWNLOADING, INSTALLING, OR OTHERWISE ACCESSING OR
USING THE EDUCATIONAL SERVICES, YOU AGREE THAT YOU HAVE READ, UNDERSTOOD, AND AGREE TO
BE BOUND BY THESE TERMS OF SERVICE. IF YOU DO NOT WISH TO BE BOUND BY THESE TERMS OF
SERVICE, PLEASE DISCONTINUE USE OF THE EDUCATIONAL SERVICES IMMEDIATELY.
For your review, the terms of service are available at the following URL:
https://vlocity.com/cms/resources/vlocity-university-terms-of-service.pdf
You are granted a nonexclusive, nontransferable, revocable, limited license to access and use our Educational Services
in accordance with the Terms of Service (https://vlocity.com/cms/resources/vlocity-university-terms-of-service-
2016.pdf). Only the authorized registrant may participate as a licensee and user of our Educational Services. As a
condition of your use of our Educational Services, you warrant to us that you will not use our Educational Services for
any purpose that is prohibited by the Terms of Service.
The material, content, and Educational Services provided by us or accessible from this Site and any other website
owned, operated, licensed, or otherwise controlled by us (the “Content”) is our proprietary information or the proprietary
information of the party that provided or licensed the Content to us, whereby we or such providing party retain(s) all
right, title, and interest in the Content.
Accordingly, the Content may not be copied, decompiled, reverse engineered, disassembled, transferred, distributed,
republished, resold, sublicensed, uploaded, posted, used to create derivative works, or transmitted in any way without
our prior written consent or the prior written consent of the Content owner, except that you may print out a copy of the
Content solely for your personal use, including as part of the applicable training or educational program.
YOUR USE OF OUR EDUCATIONAL SERVICES IS AT YOUR OWN RISK. THE EDUCATIONAL SERVICES ARE
PROVIDED “AS IS” AND WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED. WE
DISCLAIM ALL WARRANTIES, INCLUDING ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR
A PARTICULAR PURPOSE, TITLE, OR NON-INFRINGEMENT. WE DO NOT WARRANT THAT THE FUNCTIONS
OR CONTENT ASSOCIATED WITH OUR EDUCATIONAL SERVICES WILL BE UNINTERRUPTED OR ERROR-
FREE, THAT DEFECTS WILL BE CORRECTED, OR THAT OUR SITE AND EDUCATIONAL SERVICES ARE FREE
OF VIRUSES OR OTHER HARMFUL COMPONENTS. WE DO NOT WARRANT OR MAKE ANY REPRESENTATION
REGARDING USE, OR THE RESULT OF USE, OF THE EDUCATIONAL SERVICES IN TERMS OF ACCURACY,
RELIABILITY, OR OTHERWISE. THE EDUCATIONAL SERVICES MAY INCLUDE TECHNICAL INACCURACIES OR
TYPOGRAPHICAL ERRORS, AND WE MAY MAKE CHANGES OR IMPROVEMENTS AT ANY TIME.
VPE 4: Successful Interactions with Vlocity LWC OmniScript Legal Notice - Page 1
CONFIDENTIAL
Table of Contents
Legal Notice ..............................................................................................................................................1
Table of Contents......................................................................................................................................2
Preface .....................................................................................................................................................5
Exercise VPE 4-1.1: Design and Create the Edit Contact OmniScript ........................................................21
Exercise VPE 4-1.2: Design and Create the Edit Case OmniScript.............................................................23
Exercise VPE 4-2.1: Getting Data for the Edit Contact OmniScript ...........................................................30
Exercise VPE 4-2.2: Getting Data for the Edit Case OmniScript ................................................................31
VPE 4-1: Building an OmniScript’s Structure - Page 2 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
VPE 4: Successful Interactions with Vlocity LWC OmniScript Table of Contents - Page 3
CONFIDENTIAL
Document Conventions
This training material uses the following conventions.
VLOCITY SUPPORT
For questions or assistance with your Vlocity implementation, please contact Vlocity Support
or your account manager.
ADDITIONAL RESOURCES
IMPORTANT
NOTE
This is an informational note. It provides more detail and draws the reader’s attention.
VPE 4-1: Building an OmniScript’s Structure - Page 4 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
Preface
These training exercises are based on the Winter’21 release of the Vlocity Communications & Media
application, and the Winter’21 release of the Vlocity Insurance & Health application. For additional
information about the topics covered in this module, see the https://docs.vlocity.com/en/LWC-
OmniScripts.html documentation available in Vlocity Success Community at
https://success.vlocity.com/s/.
Overview
This training covers the fundamental features and functionality of the Vlocity LWC OmniScript Designer.
The module covers concepts such as OmniScript elements and common element properties, branching
an OmniScript based on what the user wants to do, error checking and validation, and adding an external
data source to OmniScripts. As you progress through this training, you complete practical, hands-on lab
exercises designed for use with the Trialforce trial org provided by Vlocity.
Prerequisites
The prerequisites for this training include a solid understanding of basic Salesforce concepts and
functionality.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-1: Building an OmniScript’s Structure – Page 5
CONFIDENTIAL
• A brief scenario that explains the use case or business need that drives the application
feature or functionality.
• A list of tasks
• Step-by-step instructions on how to complete the tasks.
• A brief scenario that explains the use case or business need that must be met.
• A list of requirements or tasks to complete.
A Level 1 Challenge:
A Level 2 Challenge:
A Level 3 Challenge:
• Is more advanced
• Requires you to integrate several skills from different lessons together
Challenge exercises solidify what you learned in the lab exercises, build your skills, and allow you to
make mistakes—which is how you master this application.
VPE 4-1: Building an OmniScript’s Structure - Page 6 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
Supported Browser
Salesforce and Vlocity only run properly in Google Chrome. Please ensure that you are using the Chrome
browser for all activities and exercises related to this course.
Getting Help
ADDITIONAL RESOURCES
If you need help or more information during the course, go to Vlocity Success Community.
You must be signed into the Community to access any associated links.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-1: Building an OmniScript’s Structure – Page 7
CONFIDENTIAL
• Setup and Deploy My Domain: You must register a custom domain to use several features for
displaying Vlocity components. This is most relevant when you build an industry console in VPE 6.
• Setup Remote Site Settings: To enable LWC features for your org, remote site settings must be
updated. This is most relevant when you create LWC-enabled cards in VPE 3. You refer back to
these cards as the course progresses.
When you log into your training org, there are setup tasks that you need to complete before you start your
exercises. You only need to complete these tasks once for each Communications or Insurance org.
a. In the upper right, click the “Astro” icon and then click Settings.
b. In the Details block, change the Email field to your corporate email address.
c. In the My Work Information block, review the Company Name field. If there are spaces or
special characters in the name, edit it to remove them.
d. Scroll down and click Save. Click OK to confirm. An email is sent to your corporate email address
for confirmation.
e. Open the email and click the link to finish changing your email address.
f. Click Continue when prompted. You now have two browser tabs open for your org. You can
close one of them if you want.
2. (Conditional) If you’re using an Insurance org, set up the platform cache. This step is already done
in Communications orgs.
b. In the Quick Find box, type Platform Cache. Click Platform Cache.
e. Click Save.
In addition to these steps, you disable pop-up blockers for your org.
Once these steps are done, your training org is ready for you to begin the lab exercises.
VPE 4-1: Building an OmniScript’s Structure - Page 8 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
In the event that the automated setup steps have not been performed for your org, follow the steps
below to perform them manually.
NOTE: HOW TO TELL IF THE AUTOMATED SETUP STEPS HAVE BEEN DONE
Check if the setup steps have already been performed automatically as follows:
In Setup, use the Quick Find to open the My Domain page. If the image on the page shows
Step 4 Domain Deployed to Users, then it has been setup already. You can also see your
domain name is on this page.
Then, use the Quick Find in Setup to go to Remote Site Settings. If the Remote Site URLs
in the EnableLWC settings match your domain name, then they have been setup already.
See the image examples after Step 3 below for further clarification.
1. Set up My Domain.
c. In My Domain Step 1, enter a unique domain name. Try the unique part of your training org login
plus the industry for this. For example, if your login is
name@company.com.700001@vlocityapps.com, try 70001@vlocityapps-cme. Or if your login
is student9999@cme.edu, try student9999-cme.
e. Click Register Domain. This process typically takes less than 30 minutes.
b. If your domain is ready to be deployed, you see My Domain Step 3. If you do not see this, wait
until your domain is ready.
c. Under your domain name in the middle of the page, click the Log in button to relaunch your
browser in your domain.
d. Click Deploy to Users and click Ok. If prompted, block pop-up messages. This stops any
browser windows opening issues from happening.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-1: Building an OmniScript’s Structure – Page 9
CONFIDENTIAL
3. Grant access to your org domains to enable LWC features. Make sure you have deployed your
domain before doing this.
a. In your org in the Cards tab, right-click in the screen and select View Frame Source from the
menu to open the iframe in a new browser tab.
b. Copy your domain from the address bar. For example, copy https://ins16883--vlocity-
ins.visualforce.com.
d. Depending on whether you are using a CMT or INS org, click Edit to open the LWC_Enable_VF
or EnableLwcVisual remote site setting.
e. Paste your domain into the Remote Site URL field and click Save.
f. Copy your lightning.force.com URL, which is visible in the address browser bar on all pages in
your org. For example, copy https://ins16883.lightning.force.com.
g. Depending on whether you are using a CMT or INS org, click Edit to open the LWC_Enable or
EnableLwc remote site setting.
h. Paste your lightning.force.com URL into the Remote Site URL field and click Save.
i. See below for examples of how the remote settings are configured.
VPE 4-1: Building an OmniScript’s Structure - Page 10 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
Once these steps are done, your training org is ready for you to begin the lab exercises.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-1: Building an OmniScript’s Structure – Page 11
CONFIDENTIAL
"As a service agent, I'd like simple guided workflows that allow me to update
some basic account, contact, and case details from the service console.
Then, for an account's primary contact, I'd like a more complex guided workflow
that provides me with options to:
- Update the contact information for the existing primary contact
- Change the primary contact to another existing contact that I can easily lookup
(and edit their contact information)
- Create a new contact and assign them as the primary contact
I'd like my data entries to be validated and to receive warnings if I make mistakes.
In the same Account Update Primary Contact guided workflow, I'd like to view weather
forecast information for the account's location and see alerts if there any hazardous weather
conditions."
As you progress through this module, you’ll complete tasks that address these requirements.
Here’s where your work on these requirements fits in with the overall solution.
VPE 4-1: Building an OmniScript’s Structure - Page 12 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
Overview of Part 1
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-1: Building an OmniScript’s Structure – Page 13
CONFIDENTIAL
"As a service agent, I'd like simple guided workflows that allow me to update some basic
account, contact, and case details from the service console.”
Based on the user requirements, you determine you need an OmniScript that allows a user
to edit account information displayed on a Vlocity Card. Therefore, you need to build the
OmniScript to show the same fields as on the card, with the fields in the correct order.
Task Overview
Task 1: Design the Edit Account OmniScript
Task 2: Create the Edit Account OmniScript
Based on user requirements, you determine that the Edit Account OmniScript must have the following
characteristics:
VPE 4-1: Building an OmniScript’s Structure - Page 14 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
Specify the elements you need to address each requirement. Choose the elements from the tables in the
Platform Essentials Take Home Guide: LWC OmniScript Element References section. We've
organized the tables by element type.
Hint: You don’t need to review the Functions table or the Common Element Properties table for this task.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-1: Building an OmniScript’s Structure – Page 15
CONFIDENTIAL
2.1 Go to the Vlocity OmniScript Designer tab and find the team/editAccount OmniScript.
VPE 4-1: Building an OmniScript’s Structure - Page 16 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
a. In the header, click New Version. The Version increments from 1 to 2 and the new version
opens in a new tab.
b. Close the tab with version 1 to prevent confusion later.
c. Confirm you are in the tab for version 2, and in the header, click Edit.
d. In the Name field, remove Starter from the name. (It then reads Team Edit Account.)
e. Click Save.
2.4 As you plan to build a one-step OmniScript, hide the step chart that displays to let users know
where they are in a sequence of steps.
a. Scroll down the Setup panel and expand STEP CHART OPTIONS.
b. Select the Hide Step Chart checkbox.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-1: Building an OmniScript’s Structure – Page 17
CONFIDENTIAL
VPE 4-1: Building an OmniScript’s Structure - Page 18 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
Because it holds data coming from the Salesforce account name (Account.Name) field, the
OmniScript user must be unable to edit the name.
2.7 Use the Control Width element property to narrow the fields. Control Width settings are an
HTML web standard and have a responsive grid.
a. In the Name element, click on the right-side border of the element to activate the Control
Width Grid.
b. Drag the slider to set the Control Width to 4 squares of the grid.
c. Set the control width to 4 for the Phone and Website elements.
The fields are now displayed on a single line.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-1: Building an OmniScript’s Structure – Page 19
CONFIDENTIAL
f. Use the Theme drop-down to see the difference between Lightning and Newport.
Review
Confirm your understanding by answering these questions.
VPE 4-1: Building an OmniScript’s Structure - Page 20 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
"As a service agent, I'd like simple guided workflows that allow me to update some
basic account, contact, and case details from the service console.”
Based on the user requirements, you determine you need an OmniScript that allows a
user to edit contact information displayed on a Vlocity Card.
Specify the element you need to address this requirement. Choose the element from the tables in the
Platform Essentials Take Home Guide: LWC OmniScript Element References section.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-1.1: Design and Create the Edit Contact OmniScript – Page 21
CONFIDENTIAL
• Build the basic structure of the OmniScript in the LWC Designer using descriptive labels.
• Use the following elements, element names, and settings*:
• Use line breaks and set control widths as you see fit.
*If no value is presented, choose your own (for example, for the Labels of each element).
VPE 4-1.1: Design and Create the Edit Contact OmniScript - Page 22 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
"As a service agent, I'd like simple guided workflows that allow me to update some
basic account, contact, and case details from the service console.”
You determine that this OmniScript has similar characteristics to the other Edit OmniScripts, with a few
exceptions:
• The user views but cannot edit the Case Number and Case Open Date.
• The user selects a case status from a dropdown list.
• The Subject and Status fields are required.
• Two fields display on one line, and another two fields display on a separate line.
Specify the elements you need to address these requirements. Choose the elements from the tables in
the Platform Essentials Take Home Guide: LWC OmniScript Element References section.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-1.2: Design and Create the Edit Case OmniScript - Page 23
CONFIDENTIAL
For this challenge, you also have a reference table for Common Element Properties. You need to
consider these properties to address a couple of the requirements.
• Build the basic structure of the OmniScript in the LWC Designer using descriptive labels.
• Use the following elements, element names, and settings:
VPE 4-1.2: Design and Create the Edit Case OmniScript - Page 24 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
• Use line breaks and set control widths as you see fit but try to have the fields arranged in 2 rows
with 2 fields in each row.
• You must tie the Select element to the Salesforce sObject to pre-populate the dropdown list
values. To do this select SObject in the Option Source field and type Case.Status in the
Source field.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-1.2: Design and Create the Edit Case OmniScript - Page 25
CONFIDENTIAL
"As a service agent, I'd like simple guided workflows that allow me to update some
basic account, contact, and case details from the service console.”
You need to link an Integration Procedure to the Edit Account OmniScript to get
account data from Salesforce. The team has already built a stub Integration
Procedure for you to use, which is called team_getAccountDetails.
Exercise Overview
Task 1: Add an Integration Procedure Action to the Edit Account OmniScript
1.1 Configure the first part of the data flow in your team/EditAccount OmniScript using a ContextId to
get some data.
a. If you did the challenges, return to Team Edit Account (Version 2).
b. If still in Preview for Team Edit Account, in the Header, click Design.
c. Click the Build panel. Either expand the ACTIONS section or use the search to locate
Integration Procedure Action.
VPE 4-2: Getting Data for an OmniScript - Page 26 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
d. Drag the Integration Procedure Action element into the canvas above stepAccount.
e. Change the Element Name and Field Label to IPGetAccountDetails. The Field Label is
not displayed in the Preview. However best practice when working with Lightning web
components is to enter the name in the Field Label. This is because the field label does
display in the Action Debugger. Later, when you configure multiple integration procedures,
having descriptive labels for them helps you confirm if they are pulling and pushing the data
correctly.
f. From the Integration Procedure dropdown list, choose team_getAccountDetails.
1.2 Configure REMOTE PROPERTIES to identify the variable to send to the Integration Procedure.
You need to send a RecordId to identify which Salesforce account record to update. This data is
stored in the ContextId.
a. In the Properties panel, expand REMOTE PROPERTIES. Under Extra Payload, set the
following values:
Key AccountId The key is the name of the variable to send to the
Integration Procedure.
Value %ContextId% You need to use a merge field to get the value in the
context ID variable. The merge field syntax is a
percent sign before and after the value.
Enter ContextId exactly as shown.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-2: Getting Data for an OmniScript - Page 27
CONFIDENTIAL
c. Look at the Data JSON panel and notice the root-level of the JSON from the Integration
Procedure displays, but not in the step. The data is not displaying in the UI because the
element names in the UI don’t match the element names in the JSON.
OmniScripts have a parser that matches incoming data with the elements based on the
element name. To populate the fields in the UI, you need to change the element names to
match the input field names from the Integration Procedure by adding “Account” to the
beginning of each element name. In addition, to condense the size of script and make them
run faster, LWC OmniScripts only display data in the JSON when there is data to display
(information is not null) and only displays data one step at a time. Updating the element
names to match the input field names updates the JSON and the data displays in the Step.
d. In the Header, click Design.
e. In the Canvas, select StepAccount. Click each element one at a time, then in the Properties
panel, set the following values:
Name AccountName
Phone AccountPhone
Website AccountWebsite
f. Click the AccountPhone element and update the Mask. Remove the mask as the phone
number does not display in a Lightning web component with a mask in place.
g. In the Header, click Preview.
VPE 4-2: Getting Data for an OmniScript - Page 28 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
h. Notice the data from the Integration Procedure now populates the fields in the UI.
Review
Confirm your understanding by answering these questions.
• What are the advantages of using Vlocity Integration Procedures as data sources?
• Why did you use the same value in the Name and Field Label of the Integration Procedure?
• What determines the JSON structure of an OmniScript?
• How does an OmniScript match incoming data with elements?
• Why did we update the mask?
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-2: Getting Data for an OmniScript - Page 29
CONFIDENTIAL
"As a service agent, I'd like simple guided workflows that allow me to update some
basic account, contact, and case details from the service console.”
You need to link the Edit Contact OmniScript to an Integration Procedure to get contact
data from Salesforce. The team has already built a stub Integration Procedure for you
to use, which is called team/getContactDetails.
Add an Integration Procedure Action to your version of the team/editContact OmniScript with these
settings:
Setting Value
VPE 4-2.1: Getting Data for the Edit Contact OmniScript - Page 30 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
"As a service agent, I'd like simple guided workflows that allow me to update some
basic account, contact, and case details from the service console.”
You need to link the Edit Case OmniScript to an Integration Procedure to get case
data from Salesforce. The team has already built a stub Integration Procedure for you
to use, which is called team_getCaseDetails.
Add an Integration Procedure Action to your version of the team/editCase OmniScript with these settings.
Setting Value
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-2.2: Getting Data for the Edit Case OmniScript - Page 31
CONFIDENTIAL
"As a service agent, I'd like simple guided workflows that allow me to update some
basic account, contact, and case details from the service console.”
You need to configure the Edit Account OmniScript so the user completes the
guided interaction. You add a second Integration Procedure Action that saves the
updated account details back to Salesforce, and a Navigate Action to complete the
OmniScript.
The team has already built a starter Integration Procedure for you to use, which is
called team_saveAccountDetails.
Exercise Overview
Task 1: Add an Integration Procedure Action to the Edit Account OmniScript
Task 2: Add a Navigate Action to the Edit Account OmniScript
Task 3: Confirm the OmniScript Launches on the Console
VPE 4-3: Ending an OmniScript - Page 32 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
1.1 If not already open, open the Team Edit Account (Version 2) OmniScript.
1.3 Preview the changes and view the data flowing to and from the OmniScript.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-3: Ending an OmniScript - Page 33
CONFIDENTIAL
f. Notice the request and response expected JSON output with the account name, website, and
phone data. (The AccountId in the Request Data is empty because you are using stub data.)
g. In the Canvas, click the Next button.
VPE 4-3: Ending an OmniScript - Page 34 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
h. In the Action Debugger, collapse the node IPGetAccountDetails, and expand the following
nodes:
• IPSaveAccountDetails, then
• Request Data (resize the box if you wish to see the data without scrolling)
• Response
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-3: Ending an OmniScript - Page 35
CONFIDENTIAL
You use a Navigation Action to specify where to send the user when the OmniScript finishes. Indicate
how to open the record page for the Salesforce object that is coded into the ContextId by default.
Navigation Action elements don’t run in Preview mode. You test the Navigation action when you run the
OmniScript from a console with live instead of stub data later.
2.1 Add an element to specify where to send the user when the OmniScript finishes.
a. In the Build panel, locate a Navigate Action element and then drag it into the Canvas under
IPSaveAccountDetails.
b. In the Navigate Action Properties panel, set or confirm the following values:
VPE 4-3: Ending an OmniScript - Page 36 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
NOTES
Once you are finished with an OmniScript, you must activate it, so it is available to you
elsewhere. For example, it isn’t available for the OS Action you created on your account Card
in the Cards module unless you activate it. If you return to the list view you see the active
check box is next to V2 and that V1 is no longer active. Remember that there is only one
active version of an OmniScript at a time!
a. If you completed your console in VPE 3-7, return to the OmniStudio Console.
b. Click on the Acme tab and refresh the screen.
c. In the Account Details card, click Menu and select Edit Account to launch the Edit Account
OmniScript.
d. After the OmniScript launches, close that tab.
The OmniScript is either empty or displays stub data. The Navigate action won’t work until
you have live data, so you test it in VPE 5.
Review
Confirm your understanding by answering these questions.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-3: Ending an OmniScript - Page 37
CONFIDENTIAL
You need to add a second Integration Procedure Action that saves the updated
contact details, and a Navigate Action so the user completes the OmniScript.
The team has already built a starter Integration Procedure for you to use, which is
called team_saveContactDetails.
Add an Integration Procedure Action to your version of the team/editContact OmniScript with these
settings.
Setting Value
VPE 4-3.1: Ending the Edit Contact OmniScript - Page 38 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
You need to add a second Integration Procedure Action that saves the updated case
details, and a Navigate Action so the user completes the OmniScript.
The team has already built a starter Integration Procedure for you to use, which is
called team_saveCaseDetails.
Add an Integration Procedure Action to your version of the team/editCase OmniScript with these settings.
Setting Value
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4-3.2: Ending the Edit Case OmniScript - Page 39
CONFIDENTIAL
"As a service agent, I'd like simple guided workflows that allow me to update
some basic account, contact, and case details from the service console. Then, for an account’s primary
contact, I'd like a more complex guided workflow that provides me with options to:
- Update the contact information for the existing primary contact
- Change the primary contact to another existing contact that I easily lookup
(and edit their contact information)
- Create a new contact and assign them as the primary contact
I'd like my data entries to be validated and to receive warnings if I make mistakes.
- In the same Account Update Primary Contact guided workflow, I'd like to view weather
forecast information for the account's location and see alerts if there any hazardous weather
conditions."
Overview of Part 2
VPE 4-3.2: Ending the Edit Case OmniScript - Page 40 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
The service agent needs a more complex guided workflow that allows them to choose
options and view different groups of fields based on what they choose.
This OmniScript is going to take a little longer to build. You’ll start as you did before by
designing and creating the structure of the OmniScript.
Exercise Overview
Task 1: Edit an Update Account Primary Contact OmniScript
1.1 Open the OmniScript Team Starter Update Account Primary Contact.
a. In the Header, click New Version. The new version opens in a new tab.
b. Close the tab with the previous version to prevent confusion later and continue in version 2.
c. Click Edit.
d. In the Name field, delete the word “Starter” to change the OmniScript name to Team Update
Account Primary Contact.
e. Click Save.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4 Part 2: Working with Complex OmniScripts - Page 41
CONFIDENTIAL
b. In the Navigation Panel, select the Tree View and expand StepContacts. Notice the
StepContacts element has three distinct blocks: BlkUpdatePriContact,
BlkChangePriContact, and BlkCreatePriContact.
c. On the canvas, click to expand StepContacts. The BlkChangePriContact is not visible there
because it is empty.
1.4 Add some instructions to help guide the user through the interaction. It’s best practice to ensure
instructions are clear, concise, and complement the existing information in the UI.
NOTE
d. Click Save.
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 42 VPE 4-4: Building a More Complex OmniScript
CONFIDENTIAL
NOTE
If you leave the Chart Label field blank, the OmniScript displays the value in the Field Label
field by default. You only need to use the Chart Label field if you wish to display an alternate
label.
NOTE
If you do not see the instructions, make sure Lightning is selected rather than Newport.
1.5 Make the Primary Contact Name field read-only. This field corresponds to an un-editable field in
Salesforce, so it must be read-only.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4 Part 2: Working with Complex OmniScripts - Page 43
CONFIDENTIAL
NOTE
The Text2 field displays the ContactId, which is the RecordId for the primary contact. Keeping
the RecordId in the same block of the OmniScript when you update that contact’s details and
save the changes back to Salesforce makes your life as a developer much easier. However,
the RecordId has no purpose for the end-user. Therefore, hide the RecordId from the UI.
1.6 Configure the BlkUpdatePriContact block to hide the RecordId so that it is not visible in the UI.
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 44 VPE 4-4: Building a More Complex OmniScript
CONFIDENTIAL
a. In the Canvas, click the IPSavePriContactDetails element. This is the Integration Procedure
that saves the data for this element. It is configured to use the starter Integration Procedure:
team_savePrimaryContactDetails.
b. In REMOTE PROPERTIES, under Extra Payload, notice the key value pair of AccountId,
%ContextId%. This specifies that the OmniScript sends the ContextId on a variable named
AccountId.
c. Rather than sending the entire JSON and identifying ContextId via extra payload, this
OmniScript is sending just the JSON of the Step Account
Send JSON Path StepContacts This value is the node in the JSON of the OmniScript
that you send to the Integration Procedure. In this case,
you send the contents of the step.
NOTE
The following properties trim the data returned to the OmniScript and rename it like the Send
JSON Path and Send JSON Node in reverse:
• Response JSON Path
• Response JSON Node
Use the following properties to call a DataRaptor Transform for more complex data mapping
when sending data or getting data back for the Integration Procedure:
• Pre-Transform DataRaptor Interface
• Post-Transform DataRaptor Interface
e. Notice that the OmniScript sends just the StepContacts JSON path to the Integration
Procedure.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4 Part 2: Working with Complex OmniScripts - Page 45
CONFIDENTIAL
Review
Confirm your understanding by answering these questions.
• Why not let a user edit the Name field from a Salesforce contact record?
• Describe some of the ways to change the UI of OmniScript elements?
• How is a Salesforce record uniquely identified?
• What variable identifies the context of an OmniScript?
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 46 VPE 4-4: Building a More Complex OmniScript
CONFIDENTIAL
The service agent needs a more complex guided workflow that allows them to choose
options and view different groups of fields based on what they choose.
This OmniScript is going to take a little longer to build. You’ll start as you did before
by designing and creating the structure of the OmniScript.
Choose from the tables in the Platform Essentials Take Home Guide: LWC OmniScript Element
References section.
• For the Change primary contact option, the user can start typing in a field to display the contact's
name and email address, and they can edit the email address if necessary.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4 Part 2: Working with Complex OmniScripts - Page 47
CONFIDENTIAL
Which Elements Do You Need for “Change the primary contact to another existing contact”?
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 48 VPE 4-4.1: Design an Update Account Primary Contact
OmniScript
CONFIDENTIAL
This OmniScript only has one step, but each of the three blocks in the step represents
a different branch. The blocks shown in the UI depend on what the user selects.
Exercise Overview
Task 1: Add Conditional Branching to an OmniScript
TIP
If you are having trouble adding an element to the OmniScript structure, check that you aren’t
zoomed out too much, as this sometimes prevents you from seeing the placement line when
you’re trying to drag and drop. (cmd + 0 or ctrl + 0)
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4 Part 2: Working with Complex OmniScripts - Page 49
CONFIDENTIAL
f. Keep Display Mode set to Vertical. Keep Option Source set to Manual. You are about to
configure the options yourself in a way that is easier to read if they are presented vertically in
a list.
g. In the Options section, click + Add New Option to add three options with the following
values and labels for the associated variables in the OmniScript JSON. (You have to click
Save to save the first one and then + Add New Option to create the next one.)
Value Label
NOTE
Translation is available for help tooltips if multilanguage is enabled. For today, enter
something in your local language if you prefer.
d. In the Header, click Preview.
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 50 VPE 4-5: Adding Branching to the OmniScript
CONFIDENTIAL
e. Hover over the Tooltip icon next to What do you want to do? to view the tooltip.
1.3 Configure a way for the value of the Radio element to control which block to display.
TIP
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4 Part 2: Working with Complex OmniScripts - Page 51
CONFIDENTIAL
1.4 Set the display condition for the next block in the step: BlkChangePriContact.
1.5 Set the display condition for the last block in the step: BlkCreatePriContact.
BEST PRACTICE
When designing guided interactions, consider showing options for the most common use
case by default (if it does not result in end-users skipping a step). In this case, we’ve
determined the most common use case is to update primary contact details.
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 52 VPE 4-5: Adding Branching to the OmniScript
CONFIDENTIAL
Review
Confirm your understanding by answering these questions.
• If an element has a conditional view, what setting do you need for that element to populate?
• Which OmniScript elements allow users to make selections from a given set of options? What are the
differences between these?
• What are some best-practice guidelines for building OmniScripts with conditional views?
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4 Part 2: Working with Complex OmniScripts - Page 53
CONFIDENTIAL
Exercise Overview
Task 1: Add a Type Ahead Block
Task 2: Refine the UI of the Type Ahead Block
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 54 VPE 4-6: Adding a Typeahead Block
CONFIDENTIAL
1.2 Configure a data source for the Type Ahead block. A stub DataRaptor Extract is already available
for you to use.
a. In the Build panel, expand the ACTIONS group (if you used search, remember to clear the
search conditions).
b. Drag a DataRaptor Extract Action into the TAChangeContact block. (It appears as a
button inside the block.)
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4 Part 2: Working with Complex OmniScripts - Page 55
CONFIDENTIAL
As with an Integration Procedure, you need to add some input parameters to send data to the
DataRaptor. This DataRaptor only needs to look for contacts associated with this account.
Input parameters are comprised of a data source and a filter value. The data source specifies the
OmniScript element or JSON node that is passed to the DataRaptor, and the filter value renames
it to a name that the DataRaptor expects. In this example, the first input parameter passes the
AccountId to the DataRaptor to filter the search to the account's contacts. The second input
parameter sends the text that the user types in to the DataRaptor as the lookup key.
ContextId AccountId
TAChangeContact LookupKey
The first value limits the search to the contacts already associated with this account. The
second sends what the user types into the Type Ahead field. The first values have to be
typed in, which the second Data Source selected from the list of options in the dropdown list.
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 56 VPE 4-6: Adding a Typeahead Block
CONFIDENTIAL
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4 Part 2: Working with Complex OmniScripts - Page 57
CONFIDENTIAL
1.5 Configure the name of the field to display in the Type Ahead Block.
a. From the first contact record, copy the text ChangeContactNameKey to the clipboard.
1.6 Add two more fields to this Type Ahead Block to store and view the data returned from the
DataRaptor.
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 58 VPE 4-6: Adding a Typeahead Block
CONFIDENTIAL
c. Drag an Email element into the TAChangeContact type ahead block under the
DRChangeContactTA element.
d. Set the following values:
f. Change the Name to ChangeContactId. This specifies where to store the RecordId for the
contact returned by the DataRaptor. Next, hide this field from the UI.
g. Click Edit Properties As JSON.
h. Change the hide value to true. Be sure to use all lowercase.
i. Click Close JSON Editor.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4 Part 2: Working with Complex OmniScripts - Page 59
CONFIDENTIAL
2.1 Notice two options for the Change primary contact fields:
- The Edit button, which the user must click to display the Contact Email field.
- The type-ahead field dropdown list, which shows a New option for adding a new contact,
which you do not want to let end users do here.
2.2 Configure the OmniScript to refine the UI by hiding the Edit button and removing the New option.
Review
Confirm your understanding by answering these questions.
• What are the three elements that need to be configured for a Type Ahead Block to work?
• What three OmniScript elements are potential data sources for a Type Ahead Block?
• Where do you configure what data is displayed in the Type Ahead dropdown?
• What JSON node contains the text that the user types into a Type Ahead Block?
• What are some ways to change the UI in OmniScript Elements?
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 60 VPE 4-6: Adding a Typeahead Block
CONFIDENTIAL
The time has come to consider what kind of errors a user might make when completing
this OmniScript and consider what kind of simple error checking to configure to avoid
them making these mistakes. You’ll start by simulating an error in your OmniScript, and
work from there.
Exercise Overview
Task 1: Confirm Simple Error Checks
Task 2: Add a Function to a Set Values Element for a Complex Error Check
Task 3: Add Error Checking
a. In Preview. select Create a new primary contact to view the associated fields.
b. Leave the fields empty and click Next.
The OmniScript displays an error under each field due to the missing field data. At least one
visible field must be set to Required for these error messages to display. What do you do
when fields are no longer visible, but required?
Task 2: Add a Function to a Set Values Element for a Complex Error Check
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4 Part 2: Working with Complex OmniScripts - Page 61
CONFIDENTIAL
e. Notice that contact information is now absent from the UI for the default Update primary
contact option.
f. Click Next. Notice the text under the Primary Contact Email field.
2.2 Add a condition that hides the Email field if the UpdateName field is blank.
d. Click Save.
e. Return to Preview.
f. Notice the email field is no longer displayed. However, if the user clicks Next, they go to the
end of the OmniScript without having completed any actions.
2.3 Add an element that adds the logic needed to stop people from moving forward without taking
any actions.
VPE 4-7: Validating Data and Handling Errors - Page 62 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
i. Paste the following text into the Expression text box to form the logical statement:
IF(%UpdateName%=null&&%TAChangeContact%=null&&%CreateLastName%=null,
"NotOK", "OK")
• If this statement is true, the expression returns the string “NotOK”.
• If this statement is false, the expression returns the string “OK”.
• If any of the three names in the expression contain a value, this expression returns OK.
• If all three names are missing a value, the expression returns NotOK.
IMPORTANT
If you paste the expression into the Value field rather than pasting it into the Expression text
box (after you enter =), it does not work because "=" doesn’t prepend the formula. There must
be an "=" before the formula for it to be correctly evaluated.
Rather than copy the text from this document, copy the expression from your OmniScript in
the Navigate Action > Internal Notes field near the bottom of the properties panel.
j. Click Save.
c. Click Refresh.
d. Select Change primary contact, and type “h”.
e. Chose Place Holder, then click Next.
f. Notice in the JSON code “SVErrorCheck”: “OK”.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4 Part 2: Working with Complex OmniScripts - Page 63
CONFIDENTIAL
3.1 Add a Set Errors element to send users back to a previous step if data is incomplete.
Set Errors elements must have a conditional view. The condition for this error check is that
SVErrorCheck is equal to NotOK. Add the condition as follows:
a. Under CONDITIONAL VIEW > View Condition, click Show Element if True.
b. For the field name, choose SVErrorCheck from the dropdown list.
c. Ensure that Equal To is selected.
d. For the Value, use NotOK. (OK is case sensitive.)
e. Click Save.
Note the condition icon (the orange eye) now displays.
VPE 4-7: Validating Data and Handling Errors - Page 64 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
f. Click Next.
g. In the Data JSON notice that the value for “SVErrorCheck” is “OK”.
Review
Confirm your understanding by answering these questions.
VPE 4: Successful Interactions with Vlocity LWC OmniScript VPE 4 Part 2: Working with Complex OmniScripts - Page 65
CONFIDENTIAL
"As a service agent, I'd like simple guided workflows that allow me to update some basic account,
contact, and case details from the service console. Then, for an account's primary contact, I'd like a more
complex guided workflow that provides me with options to:
I'd like my data entries to be validated and to receive warnings if I make mistakes.
In the Account Update Primary Contact guided workflow, I'd like to view weather forecast
information for the account's location and see alerts if there any hazardous weather conditions."
Overview of Part 3
VPE 4-7: Validating Data and Handling Errors - Page 66 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
You configure the OmniScript to display weather and forecast data from an external
data source. For the location, you use the billing postal code of the primary contact
account, which is already returned by an Integration Procedure.
Exercise Overview
Task 1: Add the Current Weather
b. Close the tab with the previous version to prevent confusion later.
c. Click Edit and add Weather to the end of the name. The full name is now = Team Update
Account Primary Contact Weather.
d. Click Save.
VPE 4 Part 3: Working with External Data VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 67
CONFIDENTIAL
You need to send two pieces of information to the Integration Procedure for when you have
live data:
VPE 4-8: Adding External Data to an OmniScript - Page 68 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
• A “Forecast” node, which has an array of data showing multiple forecast days.
Because this is a stub Integration Procedure it always returns five days of data.
• A “Current” node, which has a set of sub-nodes providing data for temperature,
condition, and city/state.
• “CurrentIcon” and “ForecastIcon” nodes in the root with icon links. These link to
an image on the API website, which you display in the OmniScript.
1.4 Add an element that displays the weather data in the OmniScript.
NOTE
A Text Block is a rich-text formatted HTML code block. Expand the editing workspace using
the bottom-right down-arrow icon.
f. Click in the Text box.
g. From the Table dropdown menu, click Table, and add a 2 x 2 table.
h. Click the Table Properties menu option.
To display degree symbol: Mac – use shift+option+8, PC – use ASCII code 0176 (this is
only typed using the numeric keypad, not the keyboard).
VPE 4 Part 3: Working with External Data VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 69
CONFIDENTIAL
n. In the second row of the first column, place the curser at the far left, click Insert, choose
Image…., and set the following values in the modal:
Property Value
Source https://%CurrentIcon%
Dimensions 64 x 64
o. Click Save.
p. Confirm the table matches the image below (with temp format of your choice):
a. Click Save.
VPE 4-8: Adding External Data to an OmniScript - Page 70 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
NOTE
If the full table does not display, return to the Designer, Open Rich Text Editor > View >
Source Code and remove and % values for width or height and return to the preview after
saving the changes.
Review
Confirm your understanding by answering these questions.
• What are some examples of data that a service agent could find useful in a guided interaction that is
not in Salesforce?
• What is the merge field syntax for JSON sub nodes in OmniScripts?
• Which OmniScript element is basically a rich-text formatted HTML code block?
VPE 4 Part 3: Working with External Data VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 71
CONFIDENTIAL
The service agent wants to be able to see the weather forecast for the location of
the primary account. You add the weather forecast to the OmniScript.
Add two more rows to the table in your Text Block and add merge codes to display the forecast for
tomorrow’s weather. Include:
• Forecast Date
• Forecast Icon
• Forecast Condition
• Forecast Hi/Lo Temp. Use the temperature format of your choice.
The forecast data itself is in an array, but the icon is not! To display the forecast data, you need to use a
special symbol in the merge field to designate which element in the array to display. You use the pipe
symbol | which you type with shift + \
• The merge code syntax for an array element is %parent|n:node% where n is the element number
(starting at 1)
• For example, to display tomorrow’s date (from the second element) you would use
%Forecast|2:Date%
2021-01-27
VPE 4-8.1: Adding the Weather Forecast - Page 72 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
VPE 4 Part 3: Working with External Data VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 73
CONFIDENTIAL
The service agent wants to see any weather warnings clearly in the UI for the location
of the contact they are working with. You decide to use a messaging function to add a
weather warning banner to the OmniScript.
A Messaging function:
• Uses a logical expression to determine whether to display a message banner.
• Can display two different messages based on whether the condition is true or
false.
Task Overview
Task 1: Add a Weather Warning Banner
1.1 Add and configure a Messaging element with a logical condition so that the OmniScript shows a
warning banner during hazardous weather conditions.
The following table shows the banner types available for true and false conditions.
VPE 4-9: Adding a Warning Banner to an OmniScript - Page 74 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
IMPORTANT
If you have Requirement for the active false statement, it means the element is required. The
user cannot progress to the next step in the OmniScript until this condition is true.
You can also deactivate either message using the options shown below.
h. Under Messages, for true, select Warning to display a Warning message if the condition is
true.
i. For the true Message, add the following merge field that shows the alert condition:
j. For the false Message, uncheck Active because we are not using it. (You may not have
issues with the stub data but will have problems later on if you leave this checked.)
VPE 4 Part 3: Working with External Data VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 75
CONFIDENTIAL
Review
Confirm your understanding by answering these questions.
VPE 4-9: Adding a Warning Banner to an OmniScript - Page 76 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
• Add the following conditions to the Validate Expression of your Messaging element: Thunderstorm
with Hail and Freezing Fog.
• What Boolean logic allows multiple conditions, AND or OR?
VPE 4 Part 3: Working with External Data VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 77
CONFIDENTIAL
“As a developer, I need the OmniScripts I created to launch from several locations. To launch from
FlexCards, I want to create a Vlocity Action to re-use again and again.”
“As a service agent, I want to easily identify and verify a caller and launch the appropriate record in
my Console once they are verified.”
Overview of Part 4
VPE 4-9.1: Adding Other Alert Conditions - Page 78 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
“As a developer, I need the OmniScripts I created to launch from several locations. To
launch from FlexCards, I want to create a Vlocity Action to re-use again and again.”
The most common way for end users to access your OmniScripts is to click an Action (if
using a console, the action is on a FlexCard, if deploying in an org without FlexCards on the
console, the action is on a button). Another member of your team built the shells of the
Action earlier, and you selected it to use in your Master Account Card FlexCard. Now is the
time to configure the Action to work with your completed OmniScript.
Task Overview
Task 1: Configure a Vlocity Action for your OmniScripts
1.1 Update the team Update Primary Contact Vlocity Action details.
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 79 VPE 4-10: Launching an OmniScript with a Vlocity Action
CONFIDENTIAL
Field Explanation/Definition
Applicable Type The Objects the Action can be used with. (Best practice is to not
use All because it slows down processing.)
Applicable User Profile Which Salesforce User Profiles can see/use the Action.
Active Like OmniScripts, Card Layouts, or Integration Procedures, you
cannot deploy an Action if it is not active.
Display On Whether you can see the Action on Mobile, Web, or both.
Target URL URL that the action launches, in our case an OmniScript.
URL Parameter The field or fields that are be passed to the URL from the sObject
named in the Salesforce Object Type. Usually this is Id, but it
could be any field from the sObject.
Open URL in Where the OmniScript opens. In a new tab / window or the same
one.
Vlocity Icon Indicates which icon is visible on a Card. You can view the full list
of icons in the Edit modal below the details section. These are
only visible in Angular Cards.
Link Type What type of Action are you creating? OmniScript, ConsoleCards
(used by the Console), or Other
VPE 4-10: Launching an OmniScript with a Vlocity Action - Page 80 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
f. Click Edit, and make the following edits to the Action (other fields remain as they are):
1.2 Update the URL for the team Update Primary Contact Vlocity Action using the team Update
Account Primary Contact OmniScript.
a. Return to the tab with Team Update Account Primary Contact Weather.
b. In the header, click Activate Version. (You need to activate the OmniScript to use it
elsewhere.)
c. When the chevrons are green, click Done.
d. In the header, click the triangle next to Edit and select How To Launch.
e. In the Embedded section, notice the tag that lets you embed the component into any Aura or
LWC component.
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 81 VPE 4-10: Launching an OmniScript with a Vlocity Action
CONFIDENTIAL
f. In the Lightning field, copy the URL from the / before lightning to the end. (If you wish,
paste it where you are tracking items to copy and paste.)
Copying the URL this way ensures portability for the OmnIScript. If you copied the entire
URL, you would only be able to deploy the OmnIScript in your org.
NOTES
The example screenshot was taken in a training playground. Your training playground has a
different URL.
VPE 4-10: Launching an OmniScript with a Vlocity Action - Page 82 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
Review
Confirm your understanding by answering these questions.
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 83 VPE 4-10: Launching an OmniScript with a Vlocity Action
CONFIDENTIAL
“As a service agent, I want to easily identify and verify a caller and launch the
appropriate record in my Console once they are verified.”
Your console is built, and you’ve provided the end-users with a 360° view of their
customers. You and the team decide that you prefer end users launch the console via an
Interaction Launcher to help ensure they select the right Account or Contact. Your team has
set up an OmniScript to use as the Interaction Launcher of your console.
Task Overview
Task 1: Add an Interaction Launcher to your Console
Vlocity has a custom Salesforce object called a Customer Interaction. This sObject represents a record of
an interaction between a customer, prospect, partner, or other contact and your organization. This could
be a record for a phone call, web site visit, or a mobile application session.
OmniScript based Interaction Launchers use Selectable Items components and are added to a console
as a Utility Item in the bottom toolbar. Interaction Launchers are essentially Selectable Items OmniScripts
with a Mobile view template.
VPE 4-11: Deploying an Interaction Launcher - Page 84 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
Your team has set up a custom OmniScript that searches for Accounts to use on the console
rather than the out of the box Interaction Launcher.
a. Click Setup.
b. Select Apps > App Manager.
c. Locate the OmniStudio Console row.
d. Click the triangle to the right of that row and select Edit.
Property Value
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 85 VPE 4-11: Deploying an Interaction Launcher
CONFIDENTIAL
j. Click Save.
VPE 4-11: Deploying an Interaction Launcher - Page 86 VPE 4: Successful Interactions with Vlocity LWC OmniScript
CONFIDENTIAL
Review
Confirm your understanding by answering this question.
VPE 4: Successful Interactions with Vlocity LWC OmniScript - Page 87 VPE 4-11: Deploying an Interaction Launcher