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.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
- From Setup, click Develop, then click Apex Classes, and click New.
-
Code the Apex class. Your class must implement the IDRPreprocess global interface, as shown in the following sample:
global interface IDRPreprocess { // Performed once before iterating through all uploaded objects void bulkBeforePreprocess(); // Performed on each object void preprocessObject(SObject so); // Performed once after iterating through all uploaded objects void bulkAfterPreprocess(); } - To configure an Omnistudio Data Mapper to use the preprocessor class: