Pages

Friday, 3 June 2016

Update Choice field value using SharePoint designer

There was a task to update choice field value using SharePoint designer. This choice field having two values Yes and No and that is set to the checkbox.

The client needs to update the value from No to yes whenever document uploaded in a document library.

I have tried to set YES in Designer but started throwing error. Then I have tried to set Boolean value (1), it is also throwing error.

After spending half an hour, I have created a workflow variable and retrieved the default value of the choice field (that is No) in that variable. Surprisingly it is giving me value something like {"results":["No"]}.

Now it is great, I then just set the value as {"results":["Yes"]} and wow it worked.