Hi all,
I am very new to Power Automate, Expressions and Formulas etc. I have created one approval flow (please see below) which should work as follows:
- Flow sends emails to 2 managers to approve or to reject them independently (1st level) through parallel branches. Up to this point, this flow runs OK.
- However, we need to apply further conditions (2nd level of approval will be set - one higher manager has to approve it if please see conditions below) as follows:
- if an item has total value less than or equals to e.g. € 200.000 and both above-mentioned "managers" approved an item, email notification will be sent to creator of an item that it "was fully approved"
- however, if an item has total value greater or equals to e.g. € 200.001 and both above-mentioned "managers" approved an item, it has to be sent only one higher manager for further approval
Here are 2 screens related to this flow (on the left side its beginning with parallel branches and on the right side its end where I came across below-displayed errors)
I have tested the above displayed flow and we always came across the following error messages:
Error Details: Unable to process template language expressions for action 'Condition_4' at line '1' and column '28299': 'The template language function 'lessOrEquals' expects two parameter of matching types. The function was invoked with values of type 'String' and 'Integer' that do not match.'. (please see also below)
As I mentioned above, I am very new and at this moment I do not know how to fix it ... if I need to convert the values somewhere or the whole logic and steps are incorrect behind "condition 3". I would be really thankful to give me some hints and instructions how to continue with this flow after condition 3.
Thank you in advance for your assistance on that.
Regards,
Peter Adamka
Solved! Go to Solution.
Hello @Anonymous ,
did you use the dynamic content in the expression? Replace the [VolumeDynamicContent] placeholder I used in the example with the actual dynamic content in your flow?
Hello @Anonymous ,
based on the error message the 'Volume...' dynamic content is a string and string can't be lessOrEqual than a number, you must compare two numbers in the condition. Try to use the int(...) expression with the 'Volume...' dynamic content as the only parameter to convert it into a number.
Hello Tom, I tried to use it and I always get a message that "expression is invalid". Rgds, Peter
Hello @Anonymous ,
did you use the dynamic content in the expression? Replace the [VolumeDynamicContent] placeholder I used in the example with the actual dynamic content in your flow?
Hello @tom_riha , I used the actual dynamic content in my flow ("Condition 4" pls below). It looks that it works correctly upon running a few tests. Now, I need to update the flow about further actions. Thank you so much for the proposed solution. Peter
User | Count |
---|---|
88 | |
37 | |
26 | |
13 | |
13 |
User | Count |
---|---|
127 | |
54 | |
37 | |
24 | |
21 |