Pages

Wednesday, November 12, 2014

Update Multiple SharePoint List Items using SPServices (Update SP Hyperlink field using SPServices)

$().SPServices.SPUpdateMultipleListItems({
               listName: “My List”
               CAMLQuery: "<Query><Where><Eq><FieldRef Name='Request'/><Value Type='Text'>"+record_id+"
                                      </Value></Eq></Where></Query>",
               batchCmd:  "Update",
               valuepairs: [["Hyper link1", "http://google.com, Google1"],["Hyperlink2", "http://google.com, Google2"]]
 });
                                      

For additional information and updates on SPServices check Mark D Anderson's http://spservices.codeplex.com.

No comments:

Post a Comment