I have a SharePoint list and the items within this list have one or more files attached. I need to mirror/ replicate these attachments to a client’s document repository.
To this end, I am trying to determine
- The attachments created date/ time (when the file was attached to the list item)
- The attachments last modified date/time
- The attachments GUID/ ID (I need a primary key to identify the document)
I am somewhat new to the SharePoint API and am struggling a little! I have tried the call below, but it does not contain the information I am looking for. Can anyone suggest a call or endpoint that might return what I’m looking for?
http://mysite/_api/lists/getByTitle('MyList')/items?$expand=AttachmentFiles