Salesforce

How Do I Map to Specific Instances? (Magic xpi 4.6)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Map to Specific Instances? (Magic xpi 4.6)

To map single-occurrence compounds to a multi-occurrence compound, use Instance Creation to multiply Destination compounds. Then map the Source data to the appropriate created compound.

Sample Schema for Input XML Document:

Sample Schema for Output XML Document:

Sample XML Document:

  1. Drag a Data Mapper utility to the flow area.

  2. From the Toolbox's Mapper Schemas section, drag an XML type into the Source area of the Data Mapper window.

  3. In the XML Source's Properties pane, select the sample XML document.

  4. From the Toolbox's Mapper Schemas section, drag a schema type which supports multi-occurrence compounds (for example, XML) into the Destination area of the Data Mapper window.

  5. In the Destination's Properties pane, select the sample XML document.

  6. In the Data Mapper screen, define the mappings shown below.

  1. In the Destination compound’s Properties pane, enable Instance Creation by selecting Yes in the Replication parameter's drop-down list.

  2. Verify that the compound name was changed to Address#1 in the Data Mapper screen.

  3. From the compound node’s context menu, select Add Replication to create the required number of replications. Connect the simple elements in the Source to each specific Destination instance.

  • For example: Connect the simple elements of the ShipTo Source to elements in a specific Destination instance.

Reference
Attachment 
Attachment