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
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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

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