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

@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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (3,051)