cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Stuck with checkbox to yes/no instead true/false

Hi,

 

My flow with PowerApps, SP is almost done. The layout in Outlook is awesome except i need to change checkbox from true/false. When i check the flow, is this the column:

 

@{triggerBody()?['Testcolumn']}. I tried the combination but till know, nothing works. When i copy my examples, Flow doenst see the TestColumn, who sees my fault?

if(equals{(triggerBody()?['testcolumn']},True),'Yes','No')
if(equals@(triggerBody()?['testcolumn'],True),'Yes','No')
if@(equals@(triggerBody()?['testcolumn'],True),'Yes','No')
if(@equals@(triggerBody()?['testcolumn'],True),'Yes','No')

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Stuck with checkbox to yes/no instead true/false

@Anonymous 

 

The easyest way to add an expression in Flow is by means ofthe option Dynamic Content available in almost all Action blocks. If you add it this way you don't need neither {} characters nor the @ character

Flow_add_expressions.png

 

What's the format of triggerBody()?['testcolumn']? is it a string or a boolean?

Do you want to convert it to a string 'Yes' / 'No'?

 

In my opinion, the easiest way to inspect the content of triggerBody()?['testcolumn'] is to add it as Dynamic Content in a Compose action block, run again the Flow, and inspect the results

Assuming you want to convert triggerBody()?['testcolumn'] to a 'Yes' / 'No' string, please also note:

-if triggerBody()?['testcolumn'] is type boolean (True / False) you can represent it by different means, one of then is by means of the expressions: bool(1) / bool(0). So... if(equals(triggerBody()?['testcolumn'],bool(1)),'Yes','No')

-if triggerBody()?['testcolumn'] is type string, you need to use ' character. So... if(equals(triggerBody()?['testcolumn'],'True'),'Yes','No')

 

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

2 REPLIES 2
Highlighted
Dual Super User III
Dual Super User III

Re: Stuck with checkbox to yes/no instead true/false

@Anonymous 

 

The easyest way to add an expression in Flow is by means ofthe option Dynamic Content available in almost all Action blocks. If you add it this way you don't need neither {} characters nor the @ character

Flow_add_expressions.png

 

What's the format of triggerBody()?['testcolumn']? is it a string or a boolean?

Do you want to convert it to a string 'Yes' / 'No'?

 

In my opinion, the easiest way to inspect the content of triggerBody()?['testcolumn'] is to add it as Dynamic Content in a Compose action block, run again the Flow, and inspect the results

Assuming you want to convert triggerBody()?['testcolumn'] to a 'Yes' / 'No' string, please also note:

-if triggerBody()?['testcolumn'] is type boolean (True / False) you can represent it by different means, one of then is by means of the expressions: bool(1) / bool(0). So... if(equals(triggerBody()?['testcolumn'],bool(1)),'Yes','No')

-if triggerBody()?['testcolumn'] is type string, you need to use ' character. So... if(equals(triggerBody()?['testcolumn'],'True'),'Yes','No')

 

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

Highlighted
Anonymous
Not applicable

Re: Stuck with checkbox to yes/no instead true/false

Hi! 

 

That looks nice. I used the checkbox column in the Send to outlook connector. After this i saw the output was true or false instead yes/no. I will try your solution, thanks!

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Users online (3,506)