How to use in Mapping
Updated:
Once the Repository Collection and the Reference tables are created, users can implement those lookups in the attribute mapping for the sync process.
Prerequisites for mapping Lookups
- You need to have valid credentials for login into the portal.
- You need to have the Reference tables and Collection created.
- You need to have the processflow created along with the mapper node.
Steps to implement lookup in attribute mapping
-
Login to the portal and navigate to the processflow section,the processflow listing page opens. Create a processflow or edit a created processflow in the processflow Designer page opens.
-
Click on the Configuration node button of the mapper node. You can view the mapper page after clicking on the mapper configuration button.
- Expand the transformation nodes and click on the ellipses button (…) of the attribute where you want to implement the mapping.
View here for structure of mapping.
- Open the selected attribute and hardcode the syntax for mapping the lookup. You can map the lookup using two syntax formats. The syntax is given below for your reference.
Syntax 1 : Using getMapping syntax
Where ObjectType is the Reference Table Name & Value is the Source Attribute Name.
For ex: if your reference table name is Country & attribute name country_id therefore the syntax will be as above.
Note : You will get the function by expanding the function node available at the left-hand side of the mapping page. Expand Function > Generic Function & click over the getMapping function.
Syntax 2 : Using lookup syntax
The above syntax is a hardcoded syntax. You can code the syntax as given above for implementing the mapping. For Ex : if your reference table name is Country & attribute name country_id therefore the syntax will be.
Note : You cannot select this function from the function nodes. Implementing this function needs to be done as hardcoded.
On successfully implementing the mapping in the mapping space, you get a confirmation pop up for mapping the lookup. The screen is given below. Click on the Yes, do it button.
Note : You would not get this confirmation message when the mapping implemented is not syntactically correct.
After finishing the mapping click Save
button to save the mapping implemented.
Following the above steps, you can successfully implement the mapping of the Lookups for attributes.