Vlocity Facts #01 | OmniStudio DataRaptors
DataRaptor is a mapping tool that you can use to read, transform, and write Salesforce data.
For Example. In each interaction with a digital customer or business process, the system needs to extract the data in order to display it. If the user modifies this data or enters new data, they also need to be saved. This is where we use OmniStudio DataRaptors.
Where to use DataRaptors?
Retrieving Data: OmniScript calls DataRaptor Extract (via the integration procedure) to read the data from Salesforce. For example, OmniScript editing an account should display data such as account name, phone number, website, and so on.Manipulating data: OmniScript captures modified and new data based on user input. For example, an agent changes the phone number of an account.
Save Data: OmniScript calls DataRaptor Load (via the integration procedure) to write the data back to Salesforce. For example, the updated account phone number is saved back to the Account record.
Types of DataRaptors
There are four types of DataRaptor: Turbo Extract, Extract, Transform, and Load.
Turbo Extract: Read data from a single Salesforce object type that supports fields in related objects. Then select the fields you want to include. Formulas and complex field mappings are not supported.
Extract: Read data from Salesforce objects and output JSON or XML with complex field mappings. Formulas are supported.
Transform: Perform intermediate data transformations without reading from or writing to Salesforce. Formulas are supported.
Load: Update Salesforce data from JSON or XML input. Formulas are supported.
Extract: Read data from Salesforce objects and output JSON or XML with complex field mappings. Formulas are supported.
Transform: Perform intermediate data transformations without reading from or writing to Salesforce. Formulas are supported.
Load: Update Salesforce data from JSON or XML input. Formulas are supported.
Best Practices of DataRaptors:
- Use relationship notation (queries) whenever possible to pull data from other SObjects.
- Ensure that all filtering and sorting (ORDER BY) operations are on indexed fields.
- Use caching to store frequently accessed, infrequently updated data
- Create targeted DataRaptors that only extract or load the data needed for one operation.
- Try to keep the number of SObjects to three or fewer.
- Using Null value, in filter criteria of dataraptor by using "$Vlocity.null".
- In Extract and Post DataRaptor, to fasten the mapping process, it is better to copy the expected data from the Omniscript preview and paste in the output tab of the Dataraptor.
- Unused DataRaptors need cleanup and those should be removed.
For more Details Regarding DataRaptors, Omniscripts, Integration procedures refer below links.
informative content👍
ReplyDeleteVery helpful thanks Gowtham
ReplyDeleteVery informative this is
ReplyDeleteThanks for the blog Gowtham
ReplyDeleteVery well written Gowtham
ReplyDelete