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

Combining parallel approver flow with another approval level

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)

 

 Pic1_flow.pngPic2_flow.png

 

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)

 

Pic3_flow.png

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

1 ACCEPTED SOLUTION

Accepted Solutions

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?



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

4 REPLIES 4
tom_riha
Super User
Super User

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.

image.png

 



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]
Anonymous
Not applicable

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?



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]
Anonymous
Not applicable

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 

Pic4_flow.png

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,655)