Extract Account Attribute Data (Managed Package)

For the managed package runtime, an Omnistudio Data Mapper accepts an Account Id and returns Profile Attribute values for that Account.

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

To download a DataPack of this example, click here.

Before you create this example, create and run the Account Attribute example in Omnistudio Data Mapper Load Examples (Managed Package).

To create this Data Mapper Extract:

  1. Go the Data Mapper tab and click New. The Create dialog is displayed.
  2. Specify a name for the Data Mapper and configure its settings as follows:
    • Interface Type: Extract

    • Input Type: JSON

    • Output Type: JSON

  3. Click Save. The Data Mapper Interface page is displayed.
  4. On the Extract tab, specify Account as the object and Extract Output Path, and Id = Id as the filter.
  5. On the Output tab, click the + icon and add the following mappings:

    Extract JSON Path

    Output JSON Path

    Other Settings

    Account:Id

    Id

     

    Account:@GoldStarAcct

    GoldStarAcct

    Output Data Type: String

    Default Value: Off

    Account:@NumberOfStars

    NumberOfStars

    Output Data Type: Integer

    If you're using Vlocity Attributes in your output mappings, you can only use one object in your Data Mapper Extract. If you add more than one object with Vlocity Attributes in your output mappings, no data is shown for some mappings.
  6. Go to the Preview tab. If you see an Edit as Params link, click it.
  7. In the Input Parameters pane, click Add New Key/Value Pair. Enter Id as the Key and an Account Id from your org as the Value. Click Execute.
  8. Verify that the Response pane displays a JSON structure containing the desired output. For example:
    {
      "Id": "0014N00001goyP8QAI",
      "GoldStarAcct": "On",
      "NumberOfStars": 5
    }