cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
eliotcole
Advocate III
Advocate III

Elegant Boolean Variable to Google Sheets Checkbox solution

Hi, All

 

Hopefully a pretty straightforward proposition:

Update a Google Sheets Checkbox column from a True or False Boolean value in Power Automate.

 

When you place a boolean variable result into a Google Sheet boolean column the sheet errors because the value is not in 'Sheets format. Basically Sheets won't check or uncheck the box, because the "True" or "False" value isn't sent in the right format as it's always converted into a string value by the API.

 

I've tried inputting simply text TRUE or FALSE, converting the Boolean to a string, to an XML, to JSON, I've tried literally just entering a single button flow that just adds a row to the sheet and adds a false or true result with nothing feeding it ... you can't set the checkbox to change. Before I knew it was literally pushing a string, I even tried changing the case on the True and False values.

 

Here's what the system passes to Sheets, where BOOL is the Checkbox column:

 

{
  "@odata.context": "URL",
  "@odata.etag": "",
  "ItemInternalId": "ID",
  "title": "aaaaa",
  "BOOL": "False",
  "__PowerAppsId__": "ID"
}

 

As you can see, if it was passing that correctly, it would have no quotes around the "False" value. When it shows up in the sheet it has an apostrophe before it indicating it's a string value.

 

This wouldn't be an issue, but in order to satisfy a client (that uses a free plan so no premium connectors) I'm using Sheets as a workaround to get to airtable via automate.io. They aren't on power automate yet, so if I can't get the correct values into sheets, I'm not going to succeed with airtable.

 

If anyone has any ideas, I'm all ears. Is it possible that this is a fault with the Google Sheets connector?

 

Am I going to have to resort to "Helper columns"? (Ie. run the value into one column, and have a formula in the checkbox column to check based on the helper)

 

Apologies for the lack of any decent formatting here!

0 REPLIES 0

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (12,300)