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

Notifications

Announcements

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

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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard