Tag Info

New answers tagged

0

If you get a message like: The 'Attachments' column doesn't exists. Try adding 'Attachments' to the select, like: _api/lists/getByTitle('MyList')/items?$select=Attachment,AttachmentFiles,Title&$expand=AttachmentFiles


3

Use below REST API example url: "<app web url>/_api/SP.AppContextSite(@target)/web /getfilebyserverrelativeurl('/Shared Documents/filename.docx')/Length For more info: MSDN


1

You can grab the serverrelativeurl of the file from your request. Pass it to another request like so: _api/web/getfilebyserverrelativeurl('/Lists/TestList/Attachments/1/blabla.xlsx'). This will give you the file length in Bytes.


0

This can be achieved by creating a list based on out of the box Issue Tracking list. By default, versioning is on in this list and the comments field is multi line text field with property Append Changes to Existing Text selected to yes. A user working on a ticket can specify the number of hours spent on the ticket in the comment and can also mention the ...


0

REST API calls for dealing with attachments is not consistent between SharePoint 2013 / On Premises and SharePoint Online. SharePoint Online Including AttachmentFiles in the $select and $expand collections is enough. The Attachment field is automatically returned in the results set. SharePoint 2013 / On Premises You must include both AttachmentFiles, ...



Top 50 recent answers are included