web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch to un-select a C...
Power Apps
Answered

Patch to un-select a CDS Optionset?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a CDS Back-end serving my power app.

several of my fields are for test results {pass, fail, disqualified}
i added these as OptionSets, with those as the defined options.

however... I need to have a way to "reset" many fields (reactivating a resigned employee upon rehire).
is it possible in a patch command to "unset" an optionset value?
in an edit form, i can simply un-select the item... however I cant use 'column name (tablename)'.optionName, as i am trying to un-set the item.


I had hoped it was one of:
Result:Blank(),
Result:[],
Result=''


Anyone able to offer any advice here?

Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Please refer to below thread:

    Solved: How to blank an option set field in CDS with Patch... - Power Platform Community (microsoft.com)

     

    So you need to turn the formula level error management first

    273.png

    then use a Patch function:

    Patch(<entity>, <item>, {<optionset>: Blank()})

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for this!
    Confirmed, this works perfectly.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard