Salesforce

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

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

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

To map a multi-occurrence compound to a single-occurrence element, use Instance Assignment to multiply Source compounds. Then map the Source data to the Destination 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 an XML Destination type, based on the given Destination schema.

  4. In the Data Mapper screen, carry out the following:

  • Enable Instance Assignment by checking the Replication check box in the Source compound’s Node Properties screen.

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

  • From the compound node’s context menu, select Add Replication to create the required number of instances.

  1. Connect the duplicated Source elements to the simple Destination element. For example:

  • Connect the simple Address elements to ShipTo, and connect the second element to the BillTo Destination elements.

Note:

The replication in the Source will give you the first and second compound. There is no filtering available which allows you to select the required compound for each replication instance.

Reference
Attachment 
Attachment