Can someone help me to download the SharePoint lists attachments without external packages

im able to update list items and add new list but not able to download or attach files to the list items

1 Like

Hey @santhosh.k0514

Were you not able to get the file path using the list field Attachment ?

Thanks
#nK

No, actuall requirement is to download attachment n upload attachment from lists in SharePoint

1 Like

Hey @santhosh.k0514

Yes I can understand. But first step is to get the attachment path from the list item.

Once you get that, you can download the file from SharePoint using the SharePoint activities.

As all the attachments are stored in the SharePoint repo.

Hope this helps.

Thanks
#nK

Hey @santhosh.k0514

Also, you can try using the REST API for the same but it will be a bit complicated compared to the activities way of doing it.

Ref - Working with lists and list items with REST | Microsoft Learn

Thanks
#nK

Thanks, I will try it out, but when I tried listitem.fields(attachment column index) I’m getting only attachment true or false, can you help me to find the path of listitem attachment or how to convert listitem to driveitem I can download

1 Like

Sure @santhosh.k0514

But since I don’t have an accessible environment for SharePoint I’m unable to explore much.

If you can please share some screenshots will be easy to troubleshoot.

Thanks
#nK

For testing I can copy path manually after that what activitie your suggesting to download attachment from listitem?

1 Like

Here it is - https://docs.uipath.com/activities/docs/office365-download-file

#nK

I can download drive item files with this package but I’m trying to download attachment from listitem

1 Like

Yes @santhosh.k0514

You are halfway through.

As we discussed, the list attachments are stored in SharePoint so now we need to get that path…

Thanks
#nK

Hi @santhosh.k0514 ,

Did you managed to get SharePoint list’s attachments download somehow? I am also having trouble on this. Any help will be wonderful! Thanks!