Hi,
I am trying to import data into an employees table, that contains a lookup field to the systemusers table, using Dataflow.
The systemusers table has an alternate key automatically configured using the Azure AD ID field.
In my Dataflow, I am merging a raw employees table (without any lookups) with the systemusers table, using the employee email, in order to obtain the Azure AD ID per employee. I then map this Azure AD ID to the lookup field in the target employees table.
When I run the Dataflow, I receive the following in an excel refresh report:
https://XXX-cat.crm11.dynamics.com/api/data/v9.1/cr0fa_a_employeetouserlookuptests(cr0fa_employeenumber='44140289'){
"cr0fa_email": "XXX@XXX.co.uk",
"cr0fa_employeename": "XXX",
"cr0fa_employeenumber": "44140289",
"cr0fa_Userlookup@odata.bind": "/systemusers(azureactivedirectoryobjectid='74f02344-fa73-452d-8853-a4233d71c14e')"
}
{"error":{"code":"0x0","message":"Bad Request - Error in query syntax."}}
I have tried using a different alternate key such as email address but this still produced a similar error.
I was wondering if anyone has experienced issues with Dataflow imports into user lookup fields and whether there are any solutions?
I have configured lookups to non users table fields successfully using Dataflow so it feels like it's the Azure AD ID that is causing issues.
Thanks in advance for your help.