cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
PaulD1
Super User
Super User

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
PaulD1
Super User
Super User

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

Anonymous
Not applicable

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

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 the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (39,538)