Skip to main content
Community site session details

Community site session details

Session Id : k1juTjNBzc/eFXAAflsYjW
Power Automate - Using Flows
Answered

String was not recognized as a valid Boolean.

Like (0) ShareShare
ReportReport
Posted on 17 May 2019 17:06:13 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 17 May 2019 at 18:20:06
    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 17 May 2019 at 18:05:30
    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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Restore a deleted flow