cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Christine1
Level: Power Up

Running a Approval FLOW on PowerApp

I am new to FLOW and POWERAPPS and having trouble. I am trying to create an app where co-workers can submit supplies requests and have that request routed to their manager for approval. Approvers can view their approval requests in the Approvals Center and over email. Once the approver responds an approval or rejection email will be sent to a recipient as a follow up.

 

When I attempt to add the Flow I've created in PowerApps I recieve two errors over my formula. I've attached a screenshot for reference of the errors in PowerApps as well as the Roadmap for the Flow I created.

Approval Run- Function 'Run' has Invalid Arguments

Name isn't valid. This identifier isn't recognized

 

Please help.

1 REPLY 1
Super User
Super User

Re: Running a Approval FLOW on PowerApp

@Christine1 

My thoughts are one of your 4 parameters has an incorrect data type.  Create a temporary label and place the arguments to Run in the code one-by-one.  What results do you see?

 

  • ApproverToEmail
  • ResultFollowUpToEmail
  • GetManager(V2)_User(UPN)
  • GetUserProfile(V2)_User(UPN)

 

I suspect these 2 arguments are wrong because they are partially highlighted a different color.  What code are you using for them?  I don't know if you are trying to create a function or use a variable instead here.

 

  • GetManager(V2)_User(UPN)
  • GetUserProfile(V2)_User(UPN)

 

I would enable the Office365 users connector and try this code instead

 

  • Office365Users.ManagerV2("userEmail@yourcompany.com").id
  • Office365Users.UserProfileV2("userEmail@yourcompany.com").id

 

Give my suggestions a try and let me know what happens.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,675)