Tips and Tricks on how to validate your dual-write integration field-by-field level - its easy believe me 😊
After you are done with your entity field mappings for a required entity map e.g. for Vendor Groups, we started to look at in previous post to get the payload for dual-write integration, two records get created in the following tables.
1. DualWriteProjectConfiguration
2. DualWriteProjectFieldConfiguration
Records only get created when you Run the entity map and get deleted once you stopped it.
Run the entity map and check data in these tables,
1. Both tables link each other using Name field
2. For each entity map (e.g. Vendor groups) there are two records; one for Insert and Update and the other one is for delete which ends with _end
Import information about DualWriteProjectConfiguration table:
1. External URL field holds the CDS environment's URL which is linked with FO in this format https://<CDS environment URL>/api/data/v9.0/msdyn_vendorgroups. This API URL can be browsed to see available data in CDS environment
2. Project partition map field holds list of legal entities linked for dual-write, you can copy this list in notepad++ (or any where) and check all legal entities from there too - this may help you in troubleshooting
3. IsDebugMod field if marked then failure records are stored in DualWriteErrorLog table
4. Filter query expression field if you have defined Finance and Operations apps filter for entity maps it stores here
Import information about DualWriteProjectFieldConfiguration table:
Filter records from this table based on the project name you have retrieved from DualWriteProjectConfiguration table as shown below as an example
1. External lookup urls field holds information how different lookups from CDS tables are linked for this integration.
Trick and Tip: Copy data from this field and paste into Notepad ++, data looks like this
Format JSON and you can review all data easily in JSON viewer
2. Field mapping field holds information on how fields are mapped between both apps (Finance Operations app and Common Data Service)
Trick and Tip: Copy data from this field and paste into Notepad ++, Format JSON and it shows like this
DualWriteProjectConfigurationEntity data entity is the triggering point to sync data across based on pre-defined sync direction as discussed above.
In case you want to debug outbound call for vendor groups this will be the stack trace.
Comments
Post a Comment
I will appreciate your comments !