Salesforce

How Do I Map to Specific Instances? (Magic xpi 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

How Do I Map to Specific Instances? (Magic xpi 3.x)

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. Create a Data Mapper step.

  2. Define an XML Source type, based on the given schema.

  3. Define a Destination type, which supports multi-occurrence compounds (for example, XML), based on the given schema.

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

  5. Enable Instance Creation by checking the Replication check box in the Destination compound’s Node Properties screen.

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

  7. 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