Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to access an attachments using ID>

Hello all, I was wondering if there is a way for me to access an attachment using ID. I have a SharePoint list called 'Chhuns Test', and I am attempting to use a combination of collection and directly using the list to display pictures. On the details page, I am using a collection, but on the image tab, I want to use the list directly. It seems like attachments can't be put into the collection so I was thinking that this way would work. 


I was thinking of getting the ID of the selected item of the collection and using that ID, I can access the attachment from the SharePoint list directly. But I do not know the method of calling the attachment using ID. Is this even possible? Please help! Thank you!!! 

Continued Contributor
Continued Contributor

think I did this using the File URL that could be retrieved for the Attachments.  However, I'm not sure if this was the one where I had to do that via Flow and then created some HTML dynamically and populated a field with it.  That seems correct.

Again, from memory ( not reliable), I think I created the record & attachments, picked up the event in Flow, rolled through each Attachment in Flow and built an HTML string, then wrote that back out to the same SharePoint record in a distinct field.  When users went back to edit/view the record & attachments, the HTML gave them clickable links to the files.

Community Support
Community Support

Hi @Anonymous ,

Do you want to display images in attachments field of SharePoint?

Since the data in attachments field is a table, it's not supported to diaplay images in image control directly.

I suggest you use gallery to display images in attachments field and filter item according to other field.

For example, Set the gallery's Item: LookUp(listname,ID=....).Attachments

Set the gallery's arrow's OnSelect: Launch(ThisItem.AbsoluteUri)

Here's a similar issue for your reference:



Best regards,

Community Support Team _ Phoebe Liu


Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

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


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (36,377)