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 / Gallery is collection,...
Power Apps
Answered

Gallery is collection, how to view actual attachments from the original Sharepoint List

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all!  I haven't been using PowerApps for a while now and feel like I'm starting all over.  I need the communities help.   I have a gallery based on a Sharepoint list.  This list also has attachments(photos).  However, I have to create a collection to use in the app rather than the list itself. When I scroll the massive list my app crashes so that's why I went this route.  Now the issue I'm having is, now that I'm working with a collection, how  do I reference back to view the attachments for each record.  

 

First screen is the gallery with the collection.  This allows the user to select an inventory record....

Second screen shows the detail of the selected record...

In this record, it should show the attachments that are associated with the record according to the SP list.

 

I just do not know how to point back to the SP list when I'm using the collection.  

 

Please, any help would be greatly appreciated.  Thanks all!

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,930 Most Valuable Professional on at

    Hi @Anonymous ,

    Assuming you have one attachment per record - an Image control inside a Gallery based on the list

    First(
     LookUp(
     SPList,
     ID = ThisItem.ID
     ).Attachments
    ).Value

    Outside the gallery

    First(
     LookUp(
     SPList,
     ID = GalleryName.Selected.ID
     ).Attachments
    ).Value

     or all the attachments in a second gallery (if more than one per item).

    LookUp(
     SPList,
     ID = GalleryName.Selected.ID
    ).Attachments

    where the Image would be

    ThisItem.Value

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ah I was so close. I just didn't have ).value 

    Warren, as always, 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard