cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Christine1
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
mdevaney
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (76,473)