Forum Discussion
IanW_1605
Nov 14, 2023Copper Contributor
Sharepoint online List attachments with Graph API or REST API to download
Hi
I am working a proof of concept. I am relatively new to Sharepoint
In low code / automation environment I need to download the files attached to Sharepoint List. The local files will be picked up by the automation software and emailed out and the file local path will also be integrated into the company ERP solution
It has to be a HTTP call which is the best technology GRAPH or Sharepoint REST, especially in terms of features and security?
I have struggled to get REST API registered as an Azure APP (Graph is fine) and wonder if REST API needs a user account to authentic
- So, List item attachments are saved under SiteAssets/lists/"LISTGUID"/listitemID/Files
so you can get it from there and use this API:
https://learn.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=http
- So, List item attachments are saved under SiteAssets/lists/"LISTGUID"/listitemID/Files
so you can get it from there and use this API:
https://learn.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=http - IanW_1605Copper ContributorGreat I will give that a go in postman