Tag Info

New answers tagged

0

This is not possible, as you must click on a folder to display its subfolders. But I think that you can find thirs party plugins that do this trick for you.


0

ListItem resource does not expose ServerRelativeUrl property, you could use FileRef property instead. But still it does not seem possible to accomplish using SharePoint 2013 REST since FileRef property could not be retrieved for a projected field. And again SharePoint 2010 REST comes to the rescue! The following query returns Lookup field file url: ...


0

You can modify your code as below var path = SPUtility.GetCurrentGenericSetupPath(@"TEMPLATE\LAYOUTS\wfcourrierdep\pdf\Dictionnaire.pdf");


0

In CSOM you could utilize the following method to resolve ClientContext by request Url: public static class ClientContextUtilities { /// <summary> /// Resolve client context /// </summary> /// <param name="requestUri"></param> /// <param name="context"></param> /// <param ...


0

All the listed operations are supported. I would recommend you to check out the following informations on the web and MSDN: Working with files and folders with REST Working with list items with REST Upload files by using REST and Jquery


1

I don't have enough reputation to comment so I can only "answer" :-( The answer from john-m sounds great but it does not seem to work? $select=AttachmentFiles,Title does return the expected result, AttachmentFiles as deferred url just $expand=AttachmentFiles without any $select= does work, gets all fields and an array of attachments But ...


2

You need to $select and $expand the AttachmentFiles property for your list items if you want to select many items from the list. _api/lists/getByTitle('MyList')/items?$select=AttachmentFiles,Title&$expand=AttachmentFiles Then you can get attachment info (if it exists) in the AttachmentFiles property of your list item which will be an array of ...


0

You can get attachments using var url = url + "/_api/web/lists/getbytitle('ListTitle')/items(1)/AttachmentFiles"; $.ajax({ url: url, accepts: { json: "application/json;odata=verbose" }, method: "GET", success: onQuerySuccess, error: onQueryError }); function onQuerySuccess(data) { if (data) { ...



Top 50 recent answers are included