Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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.

 

  • djoel Profile Picture
    28 on at
    Re: String was not recognized as a valid Boolean.

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

  • Verified answer
    Brad_Groux Profile Picture
    4,556 on at
    Re: String was not recognized as a valid Boolean.

    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!

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,011 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow