Let's POWER Automate

From no-code to low-code

Menu
  • Expressions
  • Filters
  • General
  • Triggers
  • Application specific solutions
    • Dataverse
    • Excel
    • Forms
    • Planner
    • Outlook
    • SharePoint
    • Teams
  • Resources
  • Get help with flow
Menu

Update single Yes/No SharePoint column with Power Automate

Posted on November 30, 2022November 30, 2022 by Tom

“I want to update just a single Yes/No SharePoint column, can I do it in Power Automate without updating all the mandatory fields?”


While finalising the cheat sheet with HTTP requests to SharePoint, I noticed one column type missing its post – the Yes/No field. It’s one of the fields that’s very often updated alone, used as a flag that something happened. For example to let a flow run only once – set the field value to Yes and it’s done, the task was finished, there’s nothing else to do. But how do you do it, how do you update only this one “checkbox”?

Send an HTTP request to SharePoint

It’s the same HTTP request to SharePoint as for the other columns, the only difference being again in the FieldValue.

Method: POST

Uri: _api/web/lists/GetByTitle('<ListName>')/items(<ItemID>)/validateUpdateListItem

Body:
{
    "formValues":[
	{
	    "FieldName": "<FieldToUpdate>",
	    "FieldValue": "<ValueToUpdate>"
	}
    ]
}

While you might be tempted to update it to Yes/No or true/false values, you won’t succeed. It wants numeric values as when filtering by that column – 1 for Yes, 0 for No.

update Yes/No SharePoint Power Automate

And that’s it, the request above will update the YesNo field to value ‘Yes’.

Summary

When you update a Yes/No SharePoint column using Power Automate, you must always use the right format. In this situation it’s not true/false or yes/no, it’s numeric 1 or 0.


Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

2 thoughts on “Update single Yes/No SharePoint column with Power Automate”

  1. Mike says:
    November 30, 2022 at 8:12 pm

    Hi Tom,
    Your site is incredibly helpful. Thank you for all that you do for sharing what you have learned.
    In regard to using the “Send an HTTP request to SharePoint”. Does that present any security issues/concerns for using that function, at least in this scenario (since it’s not HTTPS)?
    Thanks

    Reply
    1. Tom says:
      December 5, 2022 at 7:40 pm

      Hello Mike,
      it’s missing the S only in the action name, when you check the url to the SharePoint site it’s HTTPS. Also, the request stays in Microsoft environment (flow <-> SP) so I wouldn’t be worried about security.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Do you know what to do, but not how to do it?

Get The Ultimate Power Automate expressions cheat sheet and translate your thoughts into flows with ease!


NEW! Master the HTTP requests to SharePoint with a new cheat sheet!

Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

Hello and welcome!

My name is Tom and I'm a business process automation consultant and Microsoft MVP living in the Czech Republic. I’ve been working with Microsoft technologies for almost 10 years, currently using mainly Power Automate, SharePoint, Teams, and the other M365 tools.

I believe that everyone can automate part of their work with the Power Automate platform. You can achieve a lot by "clicking" the flows in the designer, but you can achieve much more if you add a bit of coding knowledge. And that's what this blog is about.

To make the step from no-code Power Automate flows to low-code flows: using basic coding knowledge to build more complex yet more efficient flows to automate more of your daily tasks.

  • Use Power Automate to forward Outlook events upon registrationJanuary 29, 2023
  • Why the condition is false for the same numbers (Power Automate)January 25, 2023
  • How to forward event invitation to other calendar (Power Automate)January 22, 2023
  • Run ‘For selected item’ flow from non-default environment (Power Automate)January 18, 2023
  • Hide button in SharePoint list after Power Automate flow startedJanuary 15, 2023

Power Automate blogs worth visiting

Damien Bird
Dennis (Expiscornovus)
Paul Murana

©2023 Let's POWER Automate | Theme by SuperbThemes