1

Have you tried this? function createItem() { itemCreateInfo = new SP.ListItemCreationInformation(); targetItem = oList.addItem(itemCreateInfo); targetItem.set_item('Title', sourceItem.get_item('Title')); targetItem.set_item('CompanyName', sourceItem.get_item('CompanyName')); targetItem.set_item('OrganisationalUnit', sourceItem....


1

Even collListItem contains one item only, it's a collection https://docs.microsoft.com/en-us/previous-versions/office/sharepoint-visio/jj245102(v=office.15). So iterate the collection to get the first one. var collListItem; function QueryLastNewItem() { var clientContext = new SP.ClientContext(); var List = clientContext.get_web().get_lists()....


1

You got an extra ")" in your code. It should be this way: oListItem.set_item('Pieces Unaccompanied Hold Baggage(Rush)', "value"); But, in oListItem.set_item() method, the first parameter shoult be the INTERNAL NAME of the field. You will find the internal name in the URL when you open the field (column) settings. So it should be oListItem.set_item('...


1

You delete it using batch request as below: var batch = $pnp.sp.createBatch(); var list = $pnp.sp.web.lists.getByTitle("List Name"); list.items.filter("Title eq 'test'").get().then((items) =>{ items.forEach(i =>{ list.items.getById(i["ID"]).inBatch(batch).delete().then(r => { console.log("deleted"); }); }); batch.execute()....


1

Possible Work around: Check "Show all items without folders" for your views. Possible Issue: For whatever reason, the item is being stored with-in the Item folder inside the list. It is a system folder and not visible in views. I had this same issue with one of my lists with an infopath form. Every now and then an item would be missing, but could be ...


1

Change your header attribute "XML-RequestDigest" to "X-RequestDigest". Reference: https://docs.microsoft.com/pt-br/sharepoint/dev/sp-add-ins/working-with-lists-and-list-items-with-rest#working-with-lists-by-using-rest


Only top voted, non community-wiki answers of a minimum length are eligible