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

Announcements

No record found.

News and Announcements icon
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
    Microsoft Employee 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 196 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans