0

I am trying to get all attachments in a custom list that has been attacht to the all items. I have used /_vti_bin/listdata.svc/MyList/attachmentFiles but it returns the request URI is not valid. How do I get all attachments in a custom list? I cannot use CSOM or JSOM, because the list is located in different site collection. appreciate all kind of advice. (it is a SharePoint 2010 environment).

5

First of all, SP.ListItem.attachmentFiles property is not available in SharePoint 2010.

The following REST query returns all attachments in a List in SharePoint 2010:

http://<sitecollection>/<site>/_vti_bin/ListData.svc/Requests?$select=Attachments&$expand=Attachments 
  • Is it possible to fetch the Attachments and ID column and Title column and store it in a in-memory database or download the documents into file system, along withe metadata . Any sample code available – SaMolPP Apr 2 '18 at 11:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.