cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ankku
Helper II
Helper II

Set variable on Uncheck checkbox

I have a Check box where I have kept formulae for Check and OnUncheck as shown in screen shot below

ankku_1-1646143957185.png

 

ankku_0-1646143897234.png

 

I am trying to pass this variable to a Power Automate defined on click of a button something like this :

ankku_2-1646144032681.png

But my Power automate fails when I don't check the box and click the button , but succeeds when I check the box and click the button and the value is set to "True" as mentioned in my OnCheck action formulae. It fails to call the Power Automate when the box is unchecked saying the passed parameter value is invalid. What wrong am I doing here??

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @ankku ,

 

The error is caused by a mismatch between the data type received by flow and the data type provided by canvas.

I suggest you declare canvas variables in 'initialize variables' in flow. 

Declaring variable in the parameter of some flow actions is confusing.

 

Best Regards,

Wearsky

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @ankku ,

 

The error is caused by a mismatch between the data type received by flow and the data type provided by canvas.

I suggest you declare canvas variables in 'initialize variables' in flow. 

Declaring variable in the parameter of some flow actions is confusing.

 

Best Regards,

Wearsky

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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