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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / String was not recogni...
Power Automate
Answered

String was not recognized as a valid Boolean.

(0) ShareShare
ReportReport
Posted on by 28

Hello,

 

Using the response from an Approval step in Flow, I'm trying to update a field in a SharePoint list with the following expression:

 

if(equals(body('Start_and_wait_for_an_approval')?['response']),'Approve'),'Yes','No')

 

It is returning an error: String was not recognized as a valid Boolean.   Can anyone explain to me why.

 

Categories:
I have the same question (0)
  • Verified answer
    Brad_Groux Profile Picture
    4,556 on at

    If the Start_and_wait_for_an_approval is a yes/no column type, you should change the parameter of the value to a Boolean using the bool function. Example: 

    @equals(triggerBody('Start_and_wait_for_an_approval')?['Approve'], bool('true'))

    For more information, please see the Bool function overview in the Workflow Definition Lanuage documentation.

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • djoel Profile Picture
    28 on at

    That was it.  Thank you so much for your reply.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard