Lookups are domain value maps, which make it easy for us to map values between different applications. These values could be essentially for the same thing, e.g. a country code. In app1, the country of Ireland is referred to as IE (alpha 2 code), while in app2, it is referred to as IRL (alpha 3 code).
Note the srcValuePlaceholder - this I need to replace with the country field from the request payload -
I run the integration again, and get a new error - Netsuite requires a subsidiary id, i.e. under which subsidiary do I want to create the customer.
The subsidiary value, in my case 1, is also a good candidate for a lookup -
I use this in the mapper -srcValuePlaceHolder needs to be replaced by 'subsidiaryID'.I re-run the integration -
Note the Netsuite internal id for the newly created customer.
Finally, lookup support in the OIC3 Factory api -
Import is very useful when the lookup values are coming from an external source e.g. my products csv file -
Line 1 B - Lookup name
Line 1 C - Lookup description
Line 1 D - keyword
Line 2 - Lookup columns
Lines 3 to 6 - Lookup values
This Lookup has been added to OIC, but not to a specific project. To do that, I need to invoke - /ic/api/integration/v1/projects/{projectId}/lookups/archive
No comments:
Post a Comment