cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

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 III
Super User III

@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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (6,222)