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.
That was it. Thank you so much for your reply.
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!
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2