Tag Info

New answers tagged

1

the best solution to solve this is to create a new file based on the stream, headers and parameters of the e-mail. Delete the original file SPEmail file. It is not possible to remove attachments of the SPEmail nor adding files to it. The only possible way is write to original message to a new file. Microsoft does it the same way within the timer service. ...


0

Here is the code which gets all items in a list and then gets attachments for each item. $(document).ready(function() { $().SPServices({ operation: "GetListItems", async: false, listName: "MahAwesomeListName", /*CAMLViewFields: "<ViewFields><FieldRef Name='Title' /></ViewFields>",*/ completefunc: function (xData, ...


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) { ...


0

@Colbs, your code should work in sp13, however, for sp10, it is not the answer. @Ryan, in my opinion, you might prefer a codeless solution, right? you can use asset library, for end users, they create folder instead of list item, the pictures uploaded in a folder will display in thumbnail view, users can easily preview them when open a folder in this ...


0

There is no such managed property for the attachments in SharePoint 2010, so the error occurred. If you search for the attachment, the list item returns, so the attachment itself cannot be returned by the search. Check those: http://sajiviswam.wordpress.com/2011/11/23/are-list-attachments-indexed-in-sharepoint-search/ ...



Top 50 recent answers are included