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

Expression Result showing as false even though if statement is true

Hi guys, 

 

I'm new to Flow and trying to create a simple alert based on a condition. Here is my flow: 

 

Flow1.PNG

Now my datasource is a SharePoint list and the TAC column is a calulated column which returns a number. 

 

My logic is simple - If the Value of the field "TAC" is equal to 1 then send an email. 

 

However whenever I run my flow no email is sent even though I use a PowerApp to set the TAC field Value to "1". I can confirm the PowerApp is setting the field in the list as when i browse to the list I see the value as 1. 

 

When i check that my flow has ran, it confirms it has ran sucessfully, however the Expression result is always showing as false, even though I know the statement should return a true result. 

 

Flow2.PNG 

Can somebody give me some steer here please, what I'm trying to acheive is straight forward. Have I hit a limitation whereby calculated columns are not supported in conditions? 

 

Thanks for your help. 

 

Steve

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver II
Resolver II

Re: Expression Result showing as false even though if statement is true

HI Steve,

All calculated fields work as a string in Flow.

 

You'll need to convert the string by using the int() expression.

 

Please see below for how I did this:


 

Then your condition will look like this:

 

 


I confirmed that it works.

Thanks,

 

Dan
 

View solution in original post

7 REPLIES 7
Highlighted
Resolver II
Resolver II

Re: Expression Result showing as false even though if statement is true

HI Steve,

All calculated fields work as a string in Flow.

 

You'll need to convert the string by using the int() expression.

 

Please see below for how I did this:


 

Then your condition will look like this:

 

 


I confirmed that it works.

Thanks,

 

Dan
 

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Expression Result showing as false even though if statement is true

Hi 

 

thank you for replying to this query. 

 

Your images are not available can you repost please?

 

Many thanks

Highlighted
Resolver II
Resolver II

Re: Expression Result showing as false even though if statement is true

Sorry for the issue with the images

 

Please see below:

 


All calculated fields work as a string in Flow.

 

You'll need to convert the string by using the int() expression.

 

Please see below for how I did this:

 

 

 

 

Highlighted
Resolver II
Resolver II

Re: Expression Result showing as false even though if statement is true

@Anonymous If this works for you please mark as solution.

 

Thanks!

Highlighted
Anonymous
Not applicable

Re: Expression Result showing as false even though if statement is true

Hi Dan, 

 

This worked a treat thank you very much! 


No idea that a calulated field which was in the number format would return as a string in flow. 

 

Many thanks 


Steve

 

 

Highlighted
Regular Visitor

Re: Expression Result showing as false even though if statement is true

The images are still now showing.
Highlighted
Frequent Visitor

Re: Expression Result showing as false even though if statement is true

Hi Dan,

 

Im currently having this same issue and looks like your solution could help a lot, except the images still dont show/are corrupted. Any chance you could update??

 

Cheers!

Helpful resources

Announcements
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (6,672)