Using Extract and Turbo Extract Data Raptors for Faster and High-Volume Data Access Through Salesforce Omnistudio
In OmniSudio, Data Raptors/Data mappers is the tool that provides the way to get data from the database, write data into the database and for transforming the data. As the business explanation, get the data from database for customer interaction and committing the changes into database when the customer changes. DataRaptors are a low-code alternative to Apex for handling data operations, making them easier to maintain and faster to implement. This chapter is described with the detailed explanation of Turbo Extract and Extract data mappers.
Data Mappers/Raptors supply data to OmniScripts and FlexCards from Salesforce and write updates from OmniScripts and FlexCards back to Salesforce. They typically do this via OmniStudio Integration Procedures. Below are the types of data raptors,

In Omnistudio, Turbo Extract Data Mapper/Raptor gets data from a single Salesforce object, and you can filter the data and select the fields to return. It will support only to access the parent level field hierarchy and not about the child level. It does not support formulas and complex output mappings. I have provided the sample SOQL query below that will shows the level of access which Turbo Extract acts.
SELECT Id, Contact.FirstName FROM Contact Where IsActive = trueWe have the Turbo Extract data raptor explained below with getting the data from the Contact object. Also got the data form the Account level which is parent to the Contact and the extracted data is stored in the variable to access from the place where we are calling this Data raptor.
On the Extract tab, you specify the Salesforce objects you want the Omnistudio Data Mapper to query and the filters that determine the data to be returned from the object.

On the Options tab, we can set advanced options such as whether to check the user's access permissions for the fields.

On the Preview tab, we can test the output of the Omnistudio Data Mapper. You provide input parameters as Key/Value pairs and then click Execute. The result is displayed in the Response section.

In the PREVIEW tab you can view the preview version of the work done.
In Omnistudio, Extract Data Mapper/Raptor gets data from one or more Salesforce objects and returns results in JSON, XML, or custom formats via complex field mappings. It supports formula and complex output mappings, and I have provided the sample SOQL query below that will shows the level of access which Turbo Extract acts.
SELECT Id, (SELECT Id FROM Contacts),(Select Id FROM Cases) FROM Account Where Rating = 'Cold'We have the Extract data raptor explained below with getting the data from the Account object also extracted the Contacts and Case related to the accounts. The extracted data will be stored in the new JSON as expected format to return and this can be accessed form the place where we are invoking this Data Raptor.
On the Extract tab, you specify the Salesforce objects you want the Omnistudio Data Mapper to query and the filters that determine the data to be returned from the object.

On the Formula tab, we can configure the formula that needs to be calculated in the runtime.

On the Output tab (3), you can map data from the extract step JSON to the output JSON.


On the Preview tab, we can test the output of the Omnistudio Data Mapper. You provide input parameters as Key/Value pairs and then click Execute. The result is displayed in the Response section.

In summary Data Raptors provides the low code, declarative and efficient solution to managing Salesforce data. By using its features Turbo Extract and Extract businesses can deliver the faster and smoother customer interactions.