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

How to select by plugin the value of an option set

(0) ShareShare
ReportReport
Posted on by

Hi guys

My question is this how can I select the unasigned value of an option set by plugin

My option set has 4 values but I need to select the unasigned but it doesn't have any numeric value

is this posible?

I need to select this by code

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Aiden Kaskela Profile Picture
    19,696 on at

    Hi Alan (again :).

    You can set the attribute to a null value:

    theEntity["the_field"] = null;

    If this helps, I'd appreciate if you could mark this as a Verified answer.

    Thanks,

     Aiden

  • Rajkumar Rajaraman Profile Picture
    on at

    Set the attribute value to null:

    entity["<attribute name>"]=null;

  • Aileen Gusni Profile Picture
    44,524 on at

    Alan,

    Seems like duplicate post, you can just set the attribute to null:

    entity["optionsetfield"] = null

    For the new record you can also set the default value in the customization to Null, don't set to anyone.

    Hope this helps.

    Thanks.

  • Muhammad Salahuddin Profile Picture
    470 on at

    Can you post your code here, so that we can get clear view of how you are doing that?

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans