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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,752)