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!
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
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.
Daivat Vartak (v-9d...
225
Super User 2025 Season 1
Muhammad Shahzad Sh...
106
Most Valuable Professional
Eugen Podkorytov
102