Introduction #
Currently, our mapping tool is hierarchical nodes on the left and right side, the user has to drag a node’s field to match other node’s field on the right. We are trying to enhance our mapping tool now. Our logic is easy just to do node by node and not hierarchically and thus we don’t need to program recursion to handle tree operation. To ease the mapping working effort with our mapping tool we need to function to map all fields, which has the same name. It is an Auto Mapping button, which is in the mapping tool.
Why we use this feature? #
Now we can use automapping by clicking button Auto Mapping in the mapping tool. To do auto mapping, we need to open the tree node both source and target first. After that, we click button Auto Mapping, so it will auto-create mapping on each leaf node, which has the same, name and writeable.
Prerequisite:
- Create hierarchical message type e.g Account, Contact, Asset
- Create Structure for each message type
- Navigate to the inbound interface or outbound interface and then select message type for using IStructure
How to use Auto Mapping? #
To do Automapping just open the tree node both source and target, here we have 3 nodes to do automapping:
- We use automapping in Account
- We use Auto Mapping in Contact
- We use Auto Mapping in Asset