Written by Poonam Chandersy
Technical Content WriterOmniStudio DataRaptors essentially supply data to OmniScripts and Flex Cards from Salesforce and write updates from OmniScripts and Flex Cards back to Salesforce. Typically, they do this via OmniStudio Integration Procedures and are one of the primary components of OmniStudio’s Service Management layer.
A Salesforce OmniStudio DataRaptor is a mapping tool that enables users to read, transform, and write Salesforce data. For every customer interaction or business process, the system must extract data to display it. Then, when users change that data or enter new data, it must be saved too. That’s where OmniStudio DataRaptors prove to be highly effective. Below is an example of how the data flows:
Below are some of the code capabilities of DataRaptors in Salesforce:
Although Apex classes can read, write, and transform data, they take longer to create and are more challenging to maintain than DataRaptors. Therefore, businesses should consider using DataRaptors as Vlocity as a best practice.
The DataRaptor Mapping tool enables reading, writing, and transforming JSON and XML inputs. It also helps perform intermediate data transformation without reading from or writing to Salesforce.
DataRaptor Extract and Load can handle custom data formats. They can access external objects and custom metadata as well as sObject.
DataRaptor is a declarative tool with no code required to get the data from Salesforce.
There are four types of OmniStudio Data Raptors; below is a brief description of each of the types and their functionalities:
A DataRaptor Turbo Extract retrieves data from a single Salesforce object type with support for fields from related objects. Users can filter the data and select the fields to return. DataRaptor Turbo Extract does not support formulas since there is no Output tab, and mappings to structure the output cannot be used. Custom JSON, default values, and translations are not supported either. However, it enables Simpler Configurations and enhanced Performance at runtimes.
DataRaptor Extract reads Salesforce data and returns results in JSON, XML, or custom formats. Users can filter the data and select the fields to return. DataRaptor Extract also supports Formulas, default values, and translations, while extracts typically provide OmniScripts, Integration Procedures, and Cards with the required data.
DataRaptorTransform allows users to perform intermediate data transformations without reading from or writing to Salesforce. They do not support Formulas but convert JSON input to XML output and vice versa. In addition, they restructure input data and rename fields, substitute values in fields, and convert data to PDF, DocuSign, or any Document Template formats.
DataRaptor Loads accept data in JSON, XML, or custom input formats and write the data o Salesforce objects. In addition, it supports Formulas and attributes; for example, when a user is running a case-handling OmniScript, finished entering the date, and clicks Save, the script calls a DataRaptor Load to record the data entered.
Royal Cyber understands the importance of leveraging Salesforce’s OmniStudio DataRaptors and how it can help accelerate an eCommerce business. Contact us and learn how our Salesforce experts can help you implement and execute this service to ensure increased customer satisfaction and lead conversions.