Top "Splistitem" questions

What´s the better way to get ID from lookup field value programmatically?

When I try to get the id from: string idValue = item[Lookup].ToString(); I get the next value by example: 1;#1 …

c# sharepoint-2010 lookup splistitem
How to copy SPListitem from one SPList to Another SPList

I have requirement to copy items from one SPList to another, Here is the code which is not working: public …

sharepoint splistitem
SharePoint CSOM: How to update person or group field using ValidateUpdateListItem?

I am updating a SharePoint list item using the ValidateUpdateListItem method of the client-side object model to prevent creation of …

sharepoint updates csom splistitem spuserfield
How to get the latest item created by a specific user by CAML query

I am trying to get the most recent item created by a specific user by CAML query but it seems …

c# sharepoint caml splistitem
Find latest approved version of an SPListItem

I am trying to iterate through the SPListItem.Versions collection to find the latest approved list item. My list item …

sharepoint versioning document-library splistitem
Finding SharePoint list item by its display form's URL

Sometimes users require to change information in SharePoint list item that is not editable for them, for instance, a field …

sharepoint sharepoint-api splistitem
When is SPFile.Properties != to SPFile.Item.Properties in SharePoint?

One of our customers has a problem that we cannot reproduce. We programmatically copy a document's properties to a destination …

sharepoint splistitem
SPList Item get value - ArgumentException

I have an SPListItem and I have an array of column names. When I try to access the SPListItem values …

sharepoint splistitem argumentexception
Iterating through a SPListItem/SPList

I'm making a checklist for people to do tasks on our company website. The feature I'm working on right now …

c# sharepoint splistitem
c# Insert/Update multiple lookup values to an SPListItem

sharepoint allows multiple items to be added for a lookup column type. Is there a good article that has the …

sharepoint splistitem spfieldcollection