OmniStudio Build A DataRaptor Turbo Extract and A DataRaptor Load
OmniStudio Build A DataRaptor Turbo Extract and A DataRaptor Load
Exercise Guide
You are logged in to your Developer Edition and you can begin practicing.
A DataRaptor Turbo Extract retrieves data from the Salesforce Account object, and a
DataRaptor Load saves the updated data back to the Account object.
Prerequisites
● None
We’ve designed our exercises for each OmniStudio module on the Build Guided
Experiences with OmniStudio trail to work regardless of whichever module a student takes
first on the trail. We’ve done the same for students who use more than one special org to
complete the trail.
If you’ve taken all the modules on the trail in order and if you’ve used the same org to build
“Team” FlexCards and OmniScripts, you can use them instead of the samples we provide.
However, the steps in these exercises are for the samples.
Tasks
1. Build a DataRaptor Turbo Extract to get Account data
2. Use an OmniScript JSON to Build a DataRaptor Load
Time
● 30 mins
c. Click New, then enter the following information to create the DataRaptor:
d. Click Save.
c. In the Extract Output Path, enter Account. This is the name of the incoming
JSON node the DataRaptor needs to find.
d. Next, define which field you want to use to identify which Account record to
pull data from. In the Interface Field API Name field, select Id. This is the field
used to filter the results, which in this case is an AccountId.
f. In the final field, enter AccountId. This is the name of the key in the incoming
JSON.
a. At the bottom of the Extract tab, notice the list of all the fields you can extract
data from. Select the fields to extract by moving them from the left list to the
right list. The Id field is always included in the output.
b. For the Edit Account OmniScript, select Name, Phone, and Website. (Enter a
search value in the SEARCH FIELDS text box to filter the left list.)
NOTE:
If you don’t already have it, locate Acme's Record Id as follows:
1. Select Accounts from the Object dropdown.
e. Click Execute. (You may have to scroll down to view the button).
f. Confirm the Account details for Acme display in the response. Note,
DataRaptor Turbo Extracts always present data in a nested array, even if there
is one value.
1. Access a JSON node that you will use to build a DataRaptor Load.
c. Enter Acme's RecordId in the Context ID field. Click Refresh if it does not
automatically do so.
e. On the preview screen, click the Next button to execute the Integration
Procedure Action that saves data.
Select and copy the data there and paste it to save for use in step 3d. below.
This is what you will use to build your DataRaptor. There is a clipboard icon
next to Request Data. You may use this, use keyboard shortcuts, or right-click
and select copy.
Property Value
3. Build the teamSaveAccountDetails DataRaptor using the text you copied from your
OmniScript in Step 1.
b. Type Acc and select Account from the filtered list of options.
d. Delete any text in the Input JSON text box, then paste in the text you copied
from the OmniScript Action Debugger (in Step 1).
f. Drag the INPUT MAPPINGS over to match with the OUTPUT MAPPINGS as
follows:
StepAccount:Name 1-Account:Name
Id 1-Account:Id
StepAccount:Phone 1-Account:Phone
StepAccount:Website 1-Account:Website
NOTE:
Use the search fields at the top of the columns to filter the lists. For example,
under OUTPUT MAPPINGS, type web to quickly locate Account:Website.
g. Review the mappings, comparing them to the image above. If they’re not
correct, click the X on the match, and try again. If they’re correct, click Save.
h. Click on the mapping for Id and select the Upsert Key and Is Required For
Upsert checkboxes.
NOTE:
Before a DataRaptor Load updates or inserts a new record, it checks for two
conditions: (1) does the new record have data in all of the Required for
Upsert fields, and (2) do all of the Upsert Key fields for the new record match
a unique record in Salesforce.
Each field in the DataRaptor Fields Mapping can be designated as Required for
Upsert (data must be present in the field for an upsert to take place) and/or as
an Upsert Key (required to match a unique record in Salesforce).
a. At the bottom of the Input text box, click Clear Data to refresh the data to
what you pasted before.
c. Click Execute.
d. In the Objects Created text box, click the link to the Account record.
e. In the new tab, confirm the data you changed was updated. Keep this tab
open to return to later.
Build a DataRaptor Turbo Extract to extract data from the Contact object, and build a
DataRaptor Load to save the updated Contact data back into Salesforce.
1. Build a DataRaptor Turbo Extract that extracts the following fields from a Contact
record with exactly these names in the JSON output: Id, First Name, Last Name,
Email, and Phone.
2. Use the JSON output from the sample/editContact OmniScript to build your
DataRaptor Load.
○ DataRaptors assume RecordIds are Upsert Keys. Try leaving that check box
blank, but don’t forget to select the Is Required For Upsert checkbox for the
Id mapping.
Build a DataRaptor Turbo Extract to extract data from the Case object, and build a
DataRaptor Load to save the updated Case data back into Salesforce.
1. Build a DataRaptor that extracts the following fields from a Case record with exactly
these names in the JSON output: CaseNumber, Subject, Status, Id, and
CreatedDate.
2. Use the JSON output from the sample/editCase OmniScript to build your DataRaptor
Load.
○ Don’t forget to select the Is Required For Upsert checkbox for the Id mapping.