For the managed package runtime, an Omnistudio Data Mapper accepts an Account Id and returns Profile Attribute values for that Account.
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:
- Go the Data Mapper tab and click New. The Create dialog is displayed.
- Specify a name for the Data Mapper and configure its settings as follows:
- Click Save. The Data Mapper Interface page is displayed.
-
On the Extract tab, specify Account as the object and Extract Output Path, and
Id = Idas the filter. -
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. - Go to the Preview tab. If you see an Edit as Params link, click it.
-
In the Input Parameters pane, click Add New Key/Value Pair. Enter
Idas the Key and an Account Id from your org as the Value. Click Execute. -
Verify that the Response pane displays a JSON structure containing the desired output. For example:
{ "Id": "0014N00001goyP8QAI", "GoldStarAcct": "On", "NumberOfStars": 5 }