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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Retrieving a selected ...
Power Apps
Answered

Retrieving a selected Sharepoint item ID in a flow

(0) ShareShare
ReportReport
Posted on by 147

Hello there,

 

I am currently building an application in which the rejection/approval of submitted records is done within the Power App. 

 

What I want is that after a button is clicked within the app, a flow is triggered which will send out an e-mail. The mail address can be found in the record of the selected ID within the app. The flow currently looks like this:

Danil_2-1684836780316.png

 

What I struggle with is how I get the item ID of the selected ID in this case. Currently, the button has the following code: 

 

RejectionMail.Run(ConcessionGallery.Selected.ID)

 

 

But it seems like this is not the correct way to retrieve the ID, as I get the following error:

"The method 'Run' has an invalid value for parameter 'Getitem_Id'"

 

Does anyone know what I should do to solve the issue, so my flow can retrieve the correct record information and thus send the mail to the right address (among other things)?

Categories:
I have the same question (0)
  • v-wenjuan-msft Profile Picture
    Microsoft Employee on at

    Hi @Daniël ,

     

    Could you share more details about your ConcessionGallery? What did you filled in its item? and in which button did you filled in the function you mentioned above?

    Besides, you can put a label beside the gallery and filled in ConcessionGallery.Selected.ID to see whether it retrieve the right thing you expect.

     

    I've reproduce your scenario with test data and honestly it works for me.

    vwenjuanmsft_0-1684908634812.png

     

    Meanwhile, I would like to suggest you to replace "Send an email notification (V3)" by "Send an email (V2)" from Outlook, as the former one may touch its throttling limit easily. (Refer to official document for details: Mail - Connectors | Microsoft Learn)

    vwenjuanmsft_1-1684908790239.png

     

    Community Support Team _ Wenjuan Zou

    If this post helps, then please consider Accept it as the solution to help the other members find it.

     

  • Verified answer
    Daniël Profile Picture
    147 on at

    Hello, thank you very much for your reply.

     

    I found the issue, I didn't share the code before, due to discretion reasons, but I was using Patch() functions in the same button, which is where things went wrong. I found a different solution for that in a SubmitForm().

     

    As suggested, I have adjusted my flow to us the V2 e-mail. Thank you!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard