I have problems with a condition about the value of a cell in excel:
The condition is that if the value of the ''total' field is greater than or equal to 5000 an email has to be sent to person A, and if the value is less than 5000 an email has to be sent to person B.
The excel file is uploaded to Microsoft SharePoint and the field is taking it in MS Flow but the condition does not work.
It shows me the following error:
Unable to process template language expressions for action 'Condition_Total' at line '1' and column '34993': 'The template language function 'greaterOrEquals' expects two parameter of matching types. The function was invoked with values of type 'String' and 'Integer' that do not match.'.
What should I have to do?
Thank you in advance.
Your value from excel will be returned as a string. You need to wrap it in int() and from memory, I think you don't need to do it to the number as it will infer as an int.
Jump into expression tab, type int(), and then click in dynamic and select your total value and then give it a go!
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉
Hi @DamoBird365 ,
Thanks for your answer.
I tried to do what you said, but when I select int () I can't see my total value field.
Maybe I need to do an additional process that I am not aware of.
if you reinsert the original dynamic value and then use the ellipses and peek code, you can copy the expression and paste it into the int().
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.