For the managed package runtime, to provide data from an external source (for example, a CSV file) to an Omnistudio Data Mapper, create an interface object and optionally a preprocessor class. Interface objects are custom Salesforce objects.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
The process is as follows:
-
Data is loaded into a Salesforce custom object using Salesforce's Data Import Wizard or a tool such as the Salesforce Data Loader, Informatica, or Talend.
-
Loading data into the object fires an Apex trigger that calls a Data Mapper Load.
-
The Data Mapper transforms data from the interface object as required and writes the resulting data to other Salesforce and Vlocity objects.
- Create Interface Objects (Managed Package)
For the managed package runtime, you can make external data available to Omnistudio Data Mapper Loads using an interface object. - Create Preprocessor Classes for Interface Objects (Managed Package)
For the managed package runtime, to modify data before it is imported into an interface object, create an Apex class that implements the IDRPreprocess interface. This Apex interface runs before each insert to the Interface Object.