web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need help with Conditions
Power Automate
Unanswered

Need help with Conditions

(0) ShareShare
ReportReport
Posted on by
Hi
 
I am working on the creation of a workflow that is based on Start and Wait for an approval. The approvers have 4 approval codes... Code-A (Approved). Code-B (Approved with comments), Code-C (Revise & Resubmit) and Code-D (Not rerquired).
 
During the approval prompt the approvers start the comments with the approval code i,e, Code-A or Code-B...
 
Question is how do I configure the condition step for various scenarios as there are multiple approvers and they all could have different approval codes. for example A + A + A = A or A+A+B = B or A+ B + C = C.
 
Code A is pretty staright forward so that is not a problem but Code B can either be a Code A or Code B in order for it to be Code B.
 
Will it be Condition and then select 'And' and then add two rows with Comments from Response as Code A and the other row as Code B and then tick the check marks?
Screenshot 2024-11-04 132947.png
  • David_MA Profile Picture
    15,528 Super User 2026 Season 2 on at
    I am not exactly sure I understand what you are asking. In the screen shot you attached, is the "For each 2" action configured from the data of the Responses? It would seem that it is based on the condition you have within this action. Therefore, when your condition evaluates through the responses, it will iterate once for each of your approvers. If you have four approvers, it will iterate through the apply to each four times.
     
    Since you cannot require comments, your condition, it is going to fail if someone does not provide a comment. You would want to put the Response Comments inside of a coalesce expression to handle this.
     
    In addition, since the apply to each works on each response separately, the condition would never evaluate to true since one response could not begin with both Code-A and Code-B. It could only begin with one or the other. Thus, you would want the Outcome in AND, and have the two Response Comments conditions within an OR condition.
     
    In other words, (Outcome does not contain "Reject") AND (Response Comments starts with "Code-A" OR Response Comments starts with "Code=B").

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard