web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error message : Approv...
Power Apps
Answered

Error message : ApprovalFlow.Run failed: The method 'Run' has an invalid value for parameter 'Sendemailwithoptions_To'

(0) ShareShare
ReportReport
Posted on by 58

I created canvas app "Overtime request", when I went to test it with other user on his computer (after share powerapss application) the flow is failing with this error message:

ApprovalFlow.Run failed: The method 'Run' has an invalid value for parameter 'Sendemailwithoptions_To'

 

I used below code in the powerapps  : (FYI the application works good in my computer )

 

ApprovalFlow.Run(
Form3.LastSubmit.Approver.Value,
User().FullName,
Form3.LastSubmit.Title,
Form3.LastSubmit.'Start Date ',
Form3.LastSubmit.Reason,
Form3.LastSubmit.ID,

Form3.LastSubmit.'Overtime Hours ');

 

NB: 
Attached is a screenshot 

 

Untitled.png
Categories:
  • uwenagel Profile Picture
    382 on at

    Did you check in PowerAutomate what values where transferred to the flow?

     

    You could also temporarily create a global variable that contains Form3.LastSubmit.Approver.Value to see whether this is a valid address in all circumstances.

     

    Just do a Set(gbltemp,Form3.lastSubmit.Approver.Value) after the SubmitForm. Then you can check the contents.

     

  • Chmangui Profile Picture
    58 on at

    first of all thank you for your quick response.
    i tried your solution but the issue persist .
    in my computer all works without problem only when other user wants use the application when he click on button submit the error msg is displayed

  • Verified answer
    uwenagel Profile Picture
    382 on at

    LastSubmit returns the last record created. Are you sure that the other user can create a record in the underlying table? It may be a permission problem in the SharePoint list. Otherwise I don't have an idea what could be the difference between the two users.

     

    You should see that if you either check that temporary variable I suggested when debugging or you can show it in a label somewhere on the screen. I still assume that this variable is empty in the other users' case.

     

     

     

     

  • uwenagel Profile Picture
    382 on at

    Alternately you could move the ApprovalFlow.Run to the OnSuccess of the form. This way you should be sure, that LastSubmit is not empty.

     

    Of course you still have to investigate why the Submit is not successful in the other user's case.

  • Chmangui Profile Picture
    58 on at

    good morning "application works now "

    I deleted all users and gave it permission again for the application & sharepoint list . and now the app works correctly

    thank you very much

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard