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)

How to update the read only "Yes/No" field from code in c sharp

(0) ShareShare
ReportReport
Posted on by 651

Hi,

Is there a way to update the read only "Yes/No" field from code in c sharp, other then Workflow option.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    Hi Krish,

    All you have to is assign that attribute either bool value i.e true or false.

    eg.

    EntityObject.Attributes["FieldName"] = true; //yes

    EntityObject.Attributes["FieldName"] = false;  //no

    EntityObject.Attributes["FieldName"] = null; //null

    service.Update(EntityObject);

    www.magnetismsolutions.com/.../setting_values_programmatically_via_the_crm_2011_sdk  

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    if you have plugin already use above , otherwise if you looking to do this one time : create simple console application that connects to dynamics crm  

    community.dynamics.com/.../simple-dynamics-crm-console-application  

    passion4dynamics.com/.../create-auto-number-attribute-in-dynamics-crm-365-using-organization-service-simple-console-application  

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