Adding a many-to-one mapping

You can add a many-to-one output mapping in the following way, having defined your source and target.

  1. From the Source view, highlight all the source message elements that you want to map and drag them onto the Target view, dropping them onto the target element that you want to use. The mapping appears in the Overview view showing the Source, Target, and Target Value, and also in the Outline view.
  2. With many-to-one mapping you must define how the assignment is to be made. To do this, click the Target Value for the assignment, and then click the box that appears at the end of the row. The Compose Expression editor appears and you can qualify your assignment. Configuring a mapping.
  3. When you have completed your actions on this screen, click OK to return to the Overview view.
  4. To assign other source values to target values repeat steps 1 to 3.
An alternative method for adding a many-to-one mapping is:
  1. Select the mapping sources and target values that you want to map.
  2. Right-click the selected values and select Create Mapping from the pop-up menu.

You now need to define how the multiple elements are dealt with when they are placed into the single target element. For example, the source elements might need to be concatenated or have a mathematical function carried out on them.

In the Compose Expression editor, you can add mapping expressions for sources and targets that have not yet been defined, but you cannot change mapping targets.

Related concepts
Mappings
Mapping types
Message mapping
Many-to-one mapping

Related tasks
Adding a one-to-one mapping
Adding a one-sided mapping
Adding a many-to-many mapping
Adding a case mapping
Adding a repeating mapping

Related reference
Mappings