Showing results for 
Search instead for 
Did you mean: 
Kudo Collector
Kudo Collector

Can you unset field of type Option Set using CDS with a patch?

I have an entity that contains a field of type option set. This value is not required. I'm trying to 'unset' from my app by calling:

Patch( Elements, LookUp( Elements, Element=ElementId ), { 'option set field' : Blank() } )

However, when this patch command is called the data is not modified. 

Community Support
Community Support

Hi @MrNappa ,


Will the issue solve after you set the  Option Set field with existing value?




Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

No. Take for example the following test I did:


Field definition:


Test code:


When you select the 1 or 2 and click the 'Patch' button, the value updates to the selected value. But the 'unset' option does not work; it simply ignores the Blank() patch.


(btw, I know I can work around it by introducing an additional value to the option set that represents a 'not filled out'/'not set' option, but that feels redundant)

Helpful resources

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,502)