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.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

  1. In Salesforce, create a custom object and add fields corresponding to the data in the external source.
  2. Add the following string fields to the custom object. These fields are reserved by Data Mappers for internal use.
    • DRBundleName

    • DRError

    • DRProgressData

    • DRStatus

  3. To check whether you have defined the interface object correctly, create a test Data Mapper, go to the Objects tab, click Add Object, and verify that the custom object is displayed in the list of available objects.
  4. Add to the interface object a trigger that invokes the Data Mapper Load.
  5. To ensure that your Data Mapper can access data in the interface object, load a small amount of test data into the object and run the Data Mapper. To check whether the Data Mapper logged any errors, use the Developer Console to query the interface object; for example:

    Select DRProgressData__c, DRError__c from myObjectwhere DRStatus__c = 'Error'

  6. Using the Salesforce bulk load tool or your preferred bulk load tool, import the external data into the interface object.

    You can now use the interface object in Data Mappers exactly as you use standard Salesforce objects.

    Tip
    Tip

    If you use interface objects on an ongoing basis (as opposed to performing a one-time bulk load), create a tab for the object so you can access it readily.