cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ChhunH
Level: Powered On

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
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.

2 REPLIES 2
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.

ChhunH
Level: Powered On

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
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 208 members 4,502 guests
Please welcome our newest community members: