Tag Info

New answers tagged

1

they are already updated, thats why the event-receiver is triggered. you can get the item, on which behalf the receiver is running by properties.ListItem (properties-object is received as parameter of the method) however, if you update the item again, you have to be careful. because updating the item again of course triggers the Events again, this ...


0

I had a list where I needed to edit multiple items and used the following process to get it done; Select the list view from the toolbar ribbon and then select Datasheet view from the submenu items. This will convert your view to an excel like spread sheet. Sort the columns and then sort by the column you want to edit to have the target cells listed ...


0

Hi did anyone find an answer to this issue? i'm getting same thing if i upload 20 or more files, events start to fail, maybe one in every 10 fails.


0

Yes it is possible to batch update or create List Items function updateListItems() { var itemArray = []; var clientContext = SP.ClientContext.get_current(); var oList = clientContext.get_web().get_lists().getByTitle('TestList'); for(var i = 1; i<= 5; i++){ var oListItem = oList.getItemById(i); oListItem.set_item('Title', 'My ...


1

Since you haven't told us which API you prefer, below is demonstrated how to retrieve and update list items using JSOM API: function getListItems(listTitle) { var deferred = $.Deferred(); var ctx = SP.ClientContext.get_current(); var list = ctx.get_web().get_lists().getByTitle(listTitle); var items = ...


1

I have a list called rohit_list1 on which i am updating title for all the items with ID greater than 15. You Write your own CAML query to get ID's. Design : <input type="button" value="updateMultipleListItems" onclick="getItemsToBeUpdated()" /> JSOM Code : <script type="text/javascript"> var colllistItemToBeUpdated = ""; var ...


1

SharePoint CSOM API does not support system update (SystemUpdate method counterpart from SSOM API) but you could manipulate system fields like Modified By and Modified fields directly as demonstrated below. Prerequisites: SharePoint Server 2013 Client Components SDK using (var ctx = GetContext(webUri, userName, password)) { //get List Item ...



Top 50 recent answers are included