Contents
The ListItem object has the following methods. Deletes the list item. Gets the effective permissions that a specified user has on the list item. Gets the full URL to the SharePoint frame page that initiates the SP.Utilities.SPWOPIFrameAction object with the WOPI application associated with the list item.
To delete a list item, call the DeleteObject () method on the object. The following example uses the GetItemById () method to return the second item from the list, and then deletes the item. SharePoint Foundation 2010 maintains the integer IDs of items within collections, even if they have been deleted.
What does the CSOM Boolean mean in listitem?
Allows a reference to another list item. The field supports specification of a list identifier for a targeted list. An optional site ID can also be specified, which specifies the site of the list which contains the target of the lookup. When its value is undefined, it must be CSOM null; otherwise, it must be CSOM Boolean.
How to create, update, and delete list items?
You create a list item object, set its properties, and then update the object. To modify or delete a list item object, use the GetById() method of the ListItemCollection class to return the object, and then either set properties and call update on the object that this method returns, or call the object’s own method for deletion.
What is the CSOM Expando field name in listitem?
The CSOM expando field name is the name of the field defined in the list, and the CSOM expando field value is the field value in the list item. The following table defines the mapping between field types and values. When its value is undefined, it must be CSOM null; otherwise, it must be CSOM Int32.
When do you use counter in listitem object?
Allows a monotonically increasing integer field, which has a unique value in relation to other values that are stored for the field in the list. Counter is used only for the list item ID field, and not intended for use elsewhere. When its value is undefined, it must be CSOM null; otherwise, it must be CSOM String.
What should the optional site ID be in listitem?
An optional site ID can also be specified, which specifies the site of the list which contains the target of the lookup. When its value is undefined, it must be CSOM null; otherwise, it must be CSOM Boolean. Allows a true or false value.