Friday, February 12, 2016

How to update bulk items and all items in custom list using SPServices

In this article,bulk updatein sharepoint list
 <input id="btnUpdateItem" type="button" value="Delete all items" />
jQuery:
$('#btnUpdateItem').click(function()
{
UpdateAction();
});
function UpdateAction()
{
$().SPServices.SPUpdateMultipleListItems({
  listName: "SupportTable-OLEMData",
  CAMLQuery: "<Query><Where><IsNotNull><FieldRef Name='Title' /></IsNotNull></Where></Query>",
  valuepairs: [["Status", "Inactive"]]
});
alert("All items are updated!");
}

No comments:

Post a Comment