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 / The expression is inva...
Power Automate
Unanswered

The expression is invalid when trying to convert Microsoft Forms response to Boolean

(0) ShareShare
ReportReport
Posted on by 6

Hi All,

 

I am trying to take a microsoft form response and record it in dataverse (NOT a SP list). Part of this involves taking a response to a question and converting it into a boolean that can be accepted by a dataverse yes/no field.

 

The forms question looks something like this:

Bathroom Cleanliness:

1. OK

2. Not OK

 

I need to convert this response into the true/false that dataverse will read. To accomplish this I am trying this function:

 

if(equals(outputs('Get_response_details')?['body/r00184bd4d501404eb9c9ef7ccb20fb1a'], "Not OK"),false,true)

 

 

Unfortunately I get the browser alert that says "The expression is invalid". For the life of me I cannot figure out why, can anyone help?

Categories:
  • ScottShearer Profile Picture
    25,331 Most Valuable Professional on at

    @DorienM 

    You have double quotes around Not OK - change them to single quotes.

     

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 445

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 300

Last 30 days Overall leaderboard