Retrieve SharePoint List Item Attachments using SPServices

$().SPServices({
        operation: "GetAttachmentCollection",
        async: false,
        listName: "LIST NAME",
        ID: ItemID,
        completefunc: function(xData, Status) {
            var attachments = [];  
            $(xData.responseXML).find("Attachment").each(function() {
               var url = $(this).text();
               attachments.push(url);
            });
           
        }
   });

Comments

Popular posts from this blog

IRM and the Object Model

This content database has a schema version which is not supported in this farm

Activate and Deactivate Feature through PowerShell