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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Mapping (1:N Relationships). How to create mapping

(0) ShareShare
ReportReport
Posted on by 20

I'm trying to edit the field mappings in a 1:N relationship. Essentially the relationship is created through an API request for a lookup field and has a single field mapped. What I'm trying to do is query the list of mapped fields and then update that with other fields if needed. 

I looked at the AutoMapEntity Action and know how to edit field mappings in a relationship through the UI, but stuck doing it programmatically. Any help would be appreciated!

I have the same question (0)
  • Suggested answer
    Satish Tiwari - CRM Profile Picture
    on at

    Hello,

    You can explore this article - https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/customize-entity-relationship-metadata and see if it helps.

  • pentadrian Profile Picture
    20 on at

    Thank you for the link. I had already explored that and found that the mappings are in entity maps and attribute_maps but the relationship mappings are quite a mess there, with no easy way of querying the metadata short of writing multiple connected queries.

    There seems to be the api endpoint for creating a new 1:N relationship (CreateOneToManyRelationship) but that has only a single LookupMetadata field

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 171 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 83

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans