Hello,
Is it possible to remove mapping between fields programmatically in Dynamics 365 ?
Let me explain:
Under 1:N relationships , I have this relation ship: "contact_customer_accounts". Inside this relation,
i have this mapping "telephone1".
The goad is to delete this mapping programmatically (a c# code or a PowerShell).
I thank you in advance.
*This post is locked for comments
Why do you want to remove mapping programmatically?
It is easy to remove mapping from UI.
Hi,
Do you want to remove the ampping or the value which is mapped to the telephone1 field from account to contact? If you want to remove the mapping completely then I don't think it is worth an effort considering you can remove this from UI easily.
If you want to remove the field value then it is as simple as setting the field value as null.
contactRecord["telephone1"] = null;
service.Update(contactRecord);
Hope this helps.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
54
Victor Onyebuchi
6