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

Level 8

Re: How to access an attachments using ID>

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 Team
Community Support Team

Re: How to access an attachments using ID>

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


Power Apps Super User Class of 2020

Check it out!


Power Apps Community User Group Member Badge

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


Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,341)