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 / How do I select an Ite...
Power Apps
Answered

How do I select an Item of my SharePoint List

(0) ShareShare
ReportReport
Posted on by 71

Is there a way to select an item of my SharePoint List, like it's done with a Gallery Item?

 

Detailed Situation:

I generated an mobile App out of my SharePoint List. So I'm Having three Screens with BrowseGallery, Detail Screen and Edit Screen. The Forms on the Screens (Detail and Edit Form) are working with the Selected Item of the BrowseGallery (EditForm.Item = BrowseGallery.Selected) also the Delete and Edit Icons are working with it.

Now I want to "select" and Item of my SharePoint List manually by it's ID or something like that. For Example the user is typing the ID in a searchbox and gets directly to the Detailscreen with the "selected" Item. All other Functions (Deleting/ Editing) should also work with this manually "selected" Item.

Right now I archieved to "select" an Item with the Filter Function. So I created another Screen with a Detail Form (DetailForm2.Item = First(Filter('MySPList'; ID = BarcodeScanner2.Value)). This Workaround is nice, but makes it a little bit complicated with all the other functions.

 

TLDR:

So is there a way to "select" an Item of my SharePoint List or directly Filter and Select the right Item out of the given BrowseGallery? So it could be used in the Detail and Edit Form and for the Delete and Edit Buttons? This would make things much easier for me...

 

Thanks in advance for trying to help me 🙂

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    on at

    Hi @DustinB ,

     

    No shortcut, because the first hard-coded way to return the Selected record is through the Gallery.Selected, you can only replace the record (Gallery.Selected) with the one you manually Selected(First(Filter(..) code) in the property one by one.

    A more recommended approach is to save the selected record as a variable, so that you only need to change the definition of the variable later. For example:

    Gallery.OnSelect:  Set(varSelectedRecord; Gallery.Selected)

    BarcodeScanner2.OnSelect: Set(varSelectedRecord; First(Filter('MySPList'; ID = BarcodeScanner2.Value)))

    Hope this helps.

    Sik

  • DustinB Profile Picture
    71 on at

    thank you very much, I think that will help

  • DustinB Profile Picture
    71 on at

    Hi @v-siky-msft 

     

    but it's not possible to delete the SharePoint Item with the Remove function, is it?

    I tried  Remove('MySPList'; varSelectedRecord), but got the Error "Incompatible type"

     

    Is there another way to delete the SharePoint Item which is stored in the variable?

     

    Thanks in advance 🙂

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 739 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 268

Last 30 days Overall leaderboard