Error to set lookup field in N:1 relationship while writing data to Dynamics CRM from Azure Data Factory
While trying to sync data from sql staging table to Account entity in CRM, I faced an issue in populating the multi-lookup column.
The input column is Manager Name that is of string data type. The destination field is dfws_sareportingmanager (GUID data type) in the Account entity. The "Manager Name" should exactly match "fullname" in systemuser entity.
Below is a screenshot with the the relationship lookup in Dynamics 365:
I created a copy activity in ADF. The normal field mapping should be "Manager Name" in the source to dfws_sareportingmanager in Account entity but the datatypes are different between the 2. The "Target_SystemUser" column contains the logical name of the target entity (systemuser) and represents the entity reference.
I am not really sure how to pass the Manager Name from source to sink Account entity, if dfws_sareportingmanager is of GUID datatype.
When running the Copy Activity it returns an error
However, this was passible with KingswaySoft in SSIS: