cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Atonkin89
Frequent Visitor

Update task details fails due to boolean item

My flow is getting data from Excel to create a Planner task, and the value for a column called 'Check 1' is an integer 1 or 0.  I want to use this value to set a checklist item as checked (if value is 1) or unchecked (if value is 0). I can't figure out how to get the dynamic content in the Checked Item field as Boolean from the 'Check 1' value. I've tried Bool function, expressions, variables, Compose, always getting errors.  Any help would be much appreciated! Thank you

4 REPLIES 4
fchopo
Super User
Super User

You could use an expression like this:

if(equals(outputs('apply_to_each')?['Check_1'],1),true,false)

Hope it helps!

Ferran

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!
Atonkin89
Frequent Visitor

Thank you for this.   I tried using an Expression before in the 'Checklist is Checked' field for Update Task Details, got an error, not sure if it was my syntax or something else.  Just checking...for the expression you provided, can I use it in the field called Checklist is Checked?

Screen Shot 2021-12-20 at 12.13.27 PM.png 

v-chenzhi
Community Support
Community Support

Hi @Atonkin89 ,

 

Is your problem solved?

If not, please try to write the expression with custom value.

vchenzhi_1-1640160021613.png

vchenzhi_2-1640160044687.png

vchenzhi_3-1640160056110.png

If it helps you, please mark @fchopo 's post.

 

 

Best Regards,

Zhi Chen

 

 

 

Pls clarify, what's the full syntax of that expression? It got truncated in the screenshot.  Thx 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (1,301)