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 CRM (Archived)

Remove mapping between fields programmatically dynamics 365

(0) ShareShare
ReportReport
Posted on by

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

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    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.

  • Suggested answer
    Dynamics365 Rocker Profile Picture
    7,755 on at

    Why do you want to remove mapping programmatically?

    It is easy to remove mapping from UI.

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans