How to download attachments from a SharePoint List item via the Microsoft Module?

0
Regarding the Microsoft Module published by MXLab, I wish to check if anyone has experience in getting/downloading the attachments a list item?
asked
2 answers
0

Hello Paul Tan,

 

I did not yet had the opportunity to use the MxLab microsoft module, but within the documentation of microsoft you can the attachments of an item by using the following GET request: 

 

https://{your-site-name}/_api/web/lists/getbytitle('{list-name}')/items({item-id})/AttachmentFiles 

 

See also the documentation on the microsoft website:

 

https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-rest

 

Hope this helps,

 

Good luck

answered
0

Hi Paul,

 

I hope you achieved the connectivity successfully with sharepoint,

Use a GET operation on the download URL received from Sharepoint and use the ‘Store in a file document’ option as response handling and download the file.

 

Hope it helps!

Thanks & Regards,

Manikandan K

answered