OmniStudio Build Simple Integration Procedures
OmniStudio Build Simple Integration Procedures
Exercise Guide
You are logged in to your Developer Edition and you can begin practicing.
Build the Integration Procedure that extracts Account data from Salesforce into the Edit
Account OmniScript, then build another Integration Procedure that allows you to save
updated data from the OmniScript back to Salesforce.
Prerequisites
● None
Tasks
1. Build an Integration Procedure to Get Data for the Edit Account OmniScript
2. Build an Integration Procedure to Save Updated Data from the Edit Account
OmniScript
Time
● 20 mins
Task 1: Build an Integration Procedure to Get Data for the Edit Account
OmniScript
1. Create a new version of an existing Integration Procedure.
d. Open team/getAccountDetails > Team Stub Get Account Details (Version 1).
f. Edit the name to remove Stub. The new name is Team Get Account Details
(Version 2).
Property Value
Element Name DRGetAccountDetails
c. In the INPUT PARAMETERS table, click + Add Input Parameter and fill in the
fields as follows:
DataRaptor Turbos return data in a nested array, no matter how many entries.
The Response JSON Path field allows you to trim the response from the
DataRaptor. Using Account|1, you identify the Object node (Account) and
identify the correct instance in the array (1).
e. Click PREVIEW.
Property Value
Key AccountId
NOTE:
If you don’t already have it, locate Acme's Record Id as follows:
1. Select Accounts from the Object dropdown.
2. If needed, switch the view to All Accounts.
3. Click Acme to view Acme's detail page.
4. Copy the RecordId from the URL (Account Ids always begin with 001,
Contact Ids with a 003) and paste it somewhere to use it again.
5. Return to the DataRaptor and paste the RecordId into the Value field.
NOTE:
In the Debug Log dropdown, Original Input is what you expect to pass to the
Integration Procedure. Debug Log would allow you to work through and
identify any issues with the output and the input for each element. In
addition, there are two entries for each component. The first, NAME, displays
the output. The second, NAMEDebug shows the input for the step. If you
don't see expected outputs, you can review the debug entry to help find out
what is wrong with the input data
3. Tell the Integration Procedure what data to send back to the Edit Account
OmniScript.
a. Click PROPERTIES.
f. Click PROPERTIES.
4. Confirm the Get Account Details Integration Procedure is working in the Edit Account
OmniScript.
b. Search for sample and select the sample/editAccount Omniscript > Sample
Edit Account (Version 1).
e. Paste the Acme Account Record Id into the Context ID field and click
Refresh.
f. Confirm the account details for Acme populate in the preview screen and
JSON.
b. Search for team and open the team/saveAccountDetails > Team Starter Save
Account Details (Version 1) Integration Procedure.
d. Edit the name to remove Starter from the name. The new name is Team Save
Account Details.
e. Drag a DataRaptor Post Action into the STRUCTURE panel (below Procedure
Configuration).
e. Click Refresh.
g. Click Next.
i. Refresh the browser page (F5 or reload the page) and confirm the edit you
made displays.
b. Click Done.
Build an Integration Procedure to extract data from the Contact object, and build an
Integration Procedure to save the updated Contact data back into Salesforce.
1. Version and edit the Team Stub Get Contact Details Integration Procedure to use the
sampleGetContactDetails DataRaptor.
○ Use ContactId for the Input Parameters Data Source and Filter Value.
2. Version and edit the Team Starter Save Contact Details Integration Procedure to use
the sampleSaveContactDetails DataRaptor Load to save data from the
sample/editContact OmniScript.
○ Test the Integration Procedure using the Edit Contact OmniScript Preview.
Make sure to replace the Integration Procedure in the Integration Procedure
action element first.
Build an Integration Procedure to extract data from the Cases object, and build an
Integration Procedure to save the updated Cases data back into Salesforce.
1. Version and edit the Team Stub Get Case Details Integration Procedure to use the
sampleGetCaseDetails DataRaptor.
○ Use CaseId for the Input Parameters Data Source and Filter Value.
2. Version and edit the Team Starter Save Case Details Integration Procedure to use the
sampleSaveCaseDetails DataRaptor Load to save data from the sample/editCase
OmniScript. Test the Integration Procedure using the Edit Cases OmniScript Preview.
Make sure to replace the Integration Procedure in the Integration Procedure action
element first.