Forum Discussion

stuartmccoll's avatar
stuartmccoll
Copper Contributor
Jun 16, 2020

Attaching files to a SharePoint list item via Graph API

Hi,

 

Is it possible to attach files to a SharePoint list item (not a drive item) using Graph API?

 

From some limited testing I've been able to tell when a list item has attachments, but not interact with those attachments or upload any additional attachments.

 

I can see that it's definitely possible with the older SharePoint API, but wondered if this functionality is also present in Graph API?

 

Thanks in advance.

3 Replies

  • LizThom's avatar
    LizThom
    Copper Contributor
    Did you ever find a solution to this issue as I have the same question.
    • stuartmccoll's avatar
      stuartmccoll
      Copper Contributor

      Hi,

       

      I had to resort to using the https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/get-to-know-the-sharepoint-rest-service?tabs=csom which allows for attaching files. At the time it didn't seem like Graph API was capable of attaching files to SharePoint list items, although this might have changed since.

      • Maryam_Adib's avatar
        Maryam_Adib
        Copper Contributor

        stuartmccoll 

        Hi,

         

        Have you find any solution that how we can add a file as attached in out list in Share Point by Graph API Library? C# code ?

Resources