Microsoft Forms and Power Automate. The flow
works end to end however I am having an issue
with the Stage 2 condition routing to the
wrong email.
1. Trigger: When a new response is submitted
(Microsoft Forms)
2. Get response details
3. Compose (to format email body cleanly)
4. Start and wait for an approval (Stage 1)
5. Condition (Stage 1 Outcome = Approve)
- TRUE: Start and wait for an approval 1
(Stage 2)
- FALSE: Send rejection email to submitter
6. Condition 1 (Stage 2 Outcome = Approve)
- TRUE: Send approval confirmation email
- FALSE: Send rejection email to submitter
When Stage 1 approves and Stage 2 rejects,
the submitter receives the fully approved
confirmation email instead of the rejection
email.
1. Checking the condition reads Outcome =
Approve
2. Checking the True and False branches have
the correct emails in them
3. Using the expression:
outputs('Start_and_wait_for_an_approval_1')
?['body/outcome']
to reference Stage 2 outcome specifically
4. However when I try to use this expression
I receive the following error:
"The inputs of template action Condition
cannot reference action
Start_and_wait_for_an_approval_1. Action
Start_and_wait_for_an_approval_1 must be
in the same scope"
1. How do I correctly reference the Stage 2
approval outcome in my condition without
getting the scope error?
2. Does the Stage 2 condition need to be
nested inside the True branch in a
specific way?
3. Is there a better way to structure a 2
stage approval flow to avoid this scope
issue?
Thank you!

Report
All responses (
Answers (