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

Condition Based on Number Calculated Field

Hi everyone,

 

I am trying to create a simple scheduled flow linked to a SharePoint list that will send an email for each item when the column 'Remaining Hours' is less than 10. But I keep getting an Action Failed error saying Invalid Template. Not sure if it makes a difference but the Remaining Hours is a calculated column. 

 

I have attatched images of the list, the column setup and the flow.

 

I hope you can help.

 

Many thanks,

 

Karl

Flow - ConfigurationFlow - ConfigurationFlow - FailureFlow - FailureList - Allocated HoursList - Allocated HoursList - Hours WorkedList - Hours WorkedList - Remaining HoursList - Remaining HoursList - ValuesList - Values

23 REPLIES 23

@DrishM13 

If Days Until is a calculated column, it won't be updated unless the item has been edited.  In other words, if Dyas Until is calculated to be 10, it will stay at 10 until the item has been edited and saved.  If that is the case, you'll need to do the Dyas Until calculation using expressions in your Flow.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott
DrishM13
Helper II
Helper II

Hi @ScottShearer , so "days until expiry" is a calculated field that is updated daily - it is based on the expiry date - todays date (that is a column that is updated with a flow) so in essence the days will count down daily

@DrishM13 

The error indicates that one of the parameters is a string in your condition.  Try wrapping both sides in an int() expression and see if that does the trick.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Thank you so very much for this along with the screen shot, @ScottShearer !  This was similar enough to my scenario that I was able to use this and get it running properly.  

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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,905)