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);
});
}
});
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
Post a Comment