cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Display Images from Sharepoint to a Gallery

How can I display an image from Sharepoint attachments in a gallery? I have tried to put all the attachments into a collection, but it seems like it is not working. 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Display Images from Sharepoint to a Gallery

Each entry in your gallery could contain multiple attachments, so your Image property (ThisItem.'{Attachments}') is returning a table rather than a single attachment.

If you only want the first attachment you can try First(ThisItem.'{Attachments}').AbsoluteUrl.

Attachments is the table, AbsoluteUrl is one of the fields and the one you need to reference to show an image.

If you want all the attachments you will need to 'nest' a gallery inside your existing gallery to show multiple attachments for each row.

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Display Images from Sharepoint to a Gallery

Each entry in your gallery could contain multiple attachments, so your Image property (ThisItem.'{Attachments}') is returning a table rather than a single attachment.

If you only want the first attachment you can try First(ThisItem.'{Attachments}').AbsoluteUrl.

Attachments is the table, AbsoluteUrl is one of the fields and the one you need to reference to show an image.

If you want all the attachments you will need to 'nest' a gallery inside your existing gallery to show multiple attachments for each row.

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Display Images from Sharepoint to a Gallery

In the formula, it keeps saying the name isn't valid, this identifier is not recognized. How can I find the appropriate name of the attachments? I have imported into a collection but the collection does not have an attachment titled "Attachments"? Thank you. 

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,677)