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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / PTO Approval with Cond...
Power Automate
Answered

PTO Approval with Condition Approvers

(0) ShareShare
ReportReport
Posted on by 13

Hi,

I am trying to build a PTO approval that starts with a Form and then send an email for approval.  In the Form, question #2 asks their office location (Colorado, Headquarters, New Jersey, etc.). Based on the choice they make in the form, the approval email needs to send to the Director of that office. Colorado - Send to Director 1, Headquarters - Send to Director 2, New Jersey - Send to Director 3, etc and I have 7 conditions.  

 

I start with the form, get details, then go into the switch with the conditions for each office.  For each office, I then build individual approvals so that it goes to the correct Director.  However, I am getting the error message "Correct to include a valid reference to 'Create_item' for the input parameters(s) of action 'Send_an_email_(V2)'".  Does anyone know why I am getting this error message?

 

Here is what I have so far:

 

Flow 1.pngFlow 2.png

 

 

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    I'm not sure why you are getting the error, but one thing I did notice that is wrong.  You are using Start an Approval, which is an Old deprecated action.  You should be using Start and Wait for an Approval.  If you switch that out then you also need to switch the Condition from response to Outcome.  Try that it may fix your problem.  The older deprecated actions can cause issues.

  • mkimener Profile Picture
    13 on at

    Pstork1, thanks for catching that.  I have updated that part and it is asking me for the "Apply to each" to select an output from the previous step.  See below.  Should I choose "Responses" for this?  I also see that the signature needs to be changed from "Approver Name" to "Response Approver name" is this correct as well?

     

    apply to each.png

  • Pstork1 Profile Picture
    68,717 Most Valuable Professional on at

    The change to Responses approver name is correct.  The apply to each appears because Responses are always a collection, even if there is only one responder.  If there is only one responder you can manually create the JSON in the expressions tab using First() to avoid the Apply to Each.

  • mkimener Profile Picture
    13 on at

    Thank you for all of your help!! That all worked.  I also found in the "send email (v2)" that when I was choosing dynamic content from the sharepoint list (that I created to hold all of the information), I was getting errors.  When I switched all the dynamic content to be from the form, it helped as well.  All conditions are working. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard