web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Load data into a polymorphic field using Data Factory

(1) ShareShare
ReportReport
Posted on by 9
Hello Team - I am loading data into the Incident table of a Dynamics 365 environment from an Azure SQL DB using the Azure Data Factory.
the Incident table has lookups to the Account table on AccountId and Contacts via the ContactId.  I have populated these two tables and obtained their GUIDs using a Data Flow so the mapping is straightforward up to this point.
There is a field called CustomerId that is a polymorhpic field.  It is linked as shown below in the image.
//
I can't work out the mapping for this.  I would think both AccountId and ContactId need to be mapped to this CustomerId field.
but can't seem to work out the correct mapping of say source ContactId -> target CustomerId@EntityReference does not work.
I think I need to create some sort of derived field in the dataflow or copy activitry where it has contact(+/ContactId/+) or something but am not sure.
I have the same question (0)
  • Verified answer
    WB-30050654-0 Profile Picture
    9 on at
    This link to some MS documentation gave me the answer.  The source customerid will map to the incident customerid and I created an additional derived field - I named it Target - that will contain the entity where the customerid should be referenced eg either account or contact.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 61

#2
Martin Dráb Profile Picture

Martin Dráb 35 Most Valuable Professional

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 29 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans