Data Raptor
Data Raptor
Data Raptor Turbo Extract Gets data from a single Salesforce object
(sObject)
Data Raptor Extract Gets data from one or more Salesforce sObjects
Data Raptor Transform Manipulates any data that comes from inside or
outside Salesforce
Data Raptor Turbo Extract
Example 1:-
Step1:-
Step 2:-
Step 3:-
Step 4:-
Step 5:-
● Click on Preview give account id in edit as params
● Click on Execute to see the result
❖ We can also fetch data from related objects with the help of
Turbo Data Raptor
For Example:-
● Fetch Account related to an Opportunity
Step 1:-
Step 2:-
Step1:-
Step 2:-
Step 3:-
Step 3:-
❖ Make AccountId as an upsert key.
Step 4:-
Step 5:-
Step 6:-
XML to JSON
Step 1:-
Step 2:-
Step 3:-
Step 4:-
JSON to XML
Step 1:-
Step 2:-
Step 3:-
❖ Click on preview give input and then click on execute to see the
result:-
Tabs in Data Raptor
❖ When you’re ready to configure DataRaptors, you use the
OmniStudio DataRaptor Designer. You can access it via the
OmniStudio DataRaptors tab in the OmniStudio app. The
designer has tabs too. Use the following designer tabs to specify
what you want the DataRaptor to do.
● Extract Tab
● Formula Tab
● Output Tab
● Options Tab
● Preview Tab
Extract Tab:-
❖ On the Extract tab (1), you specify the Salesforce objects you
want the DataRaptor to query and the filters that determine the
data to be returned from the object.
Formula Tab
❖ On the Formulas tab (2), you define formulas. Three types of
DataRaptors (Extract, Transform, and Load) support formulas.
When you define a formula, you map its output to the output
JSON (for extracts and transforms) or Salesforce object field (for
loads).
Output Tab:-
❖ On the Output tab (3), you map data from the extract step JSON
to the output JSON.
Options Tab:-
❖ On the Options tab (4), you set advanced options such as
whether to check the user's access permissions for the fields
before executing the DataRaptor. Set the Platform Cache Type to
Session Cache for data related to users and their login sessions,
or Org Cache for all other types of data. The Time to Live in
Minutes setting determines how long the data remains in the
cache.
Preview Tab:-
❖ On the Preview tab (5), you test the output of the DataRaptor.
You provide input parameters as Key/Value pairs and then click
Execute. The result is displayed in the Response section.
Functions in Data Raptor
❖ When you need to change the data you are working with in more
complex ways than with mapping inputs and outputs, use
functions.
❖ A DataRaptor function is an equation you use for operations to
do the following.
● Manipulate data about date and time
● String text together
● Determine a result based on logic
● Perform mathematical operations on numbers using
fractions
XML
What is XML?
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
</note>
Resources
❖ https://trailhead.salesforce.com/content/learn/modules/omnistudi
o-dataraptors
❖ https://www.w3schools.com/xml/xml_whatis.asp