Using transforms in Dual-Write

Dual writes do have a built-in capability of translating unlike data types to talk to one another. You have a Base enum on FinOps end, which is talking to an PickList type field on a CRM table. Normally if you map this, while saving itself, you will get an error:


In order to solve this problem, while adding the map you can click on the '=' sign , select Transform type as 'Value map'. This will let you store the enum value specific defaults as key-value pairs:


Now you can keep adding the key value pair of the translation of the mapping to make the system understand which enum value corresponds to what integer value:


Save this, come back to mapping screen and save the map. It will now let you save without any issue this time. 

Comments

Post a Comment

Popular posts from this blog

X++ : mistakes which developers commit the most

Make your menu items visible on main menu, conditionally,, using this cool feature of D365FO

Speed up your execution performance by using SysGlobalCaches