SOLVED

Issues in getting attachments from SharePoint list/library using Graph api

New Contributor

Hi All,

I unable to get the actual attachement from the SharePoint list/library using the Microsoft graph api,

I am only getting the response as " Attachement: True" in the response.Please let me know is there any way to get the attachments from SharePoint.

1 Reply
best response confirmed by sarawin kumar k (New Contributor)
Solution

@sarawin kumar k 

 

Do you called the graph api endpoint that ends with /content?.

 

For example:

GET /groups/{group-id}/drive/items/{item-id}/content

 

Refer below thread to know more details about how to download SharePoint file.

https://docs.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=cs

www.000webhost.com