Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

0
votes
2answers
34 views

Adding items to SP Folder inside document library

I have a folder inside a document library. Inside this folder I need to check the existence of a sub-folder and then, add a document and another folder to it programmatically. Lets say, my document ...
0
votes
2answers
37 views

REST API: Show each unique item only once while retrieving categories from a list

In my SP2013 environment I've a function which returns items from a list using REST. Let's say it only returns the items' category which is defined in the column "Category". It works just fine. Some ...
0
votes
0answers
10 views

Not able to debug events

I am trying to download file / items when they are uploaded / added by an external application to SharePoint Document library. I am able to debug ItemAdding Event, depending on condition ItemAdded ...
0
votes
2answers
26 views

Cannot update list item properties Server Object Model in context of SP, can update via CSOM

I am trying to update a SPListItem metadata properties after inserting this document into a document library. Fortunately though the CSOM, this is quite easy: private void ...
0
votes
2answers
20 views

item adding event receiver failes to trigger in bulk items inserting

Currently am developing an item adding event in event receiver for a custom list. The list is updated using datasheet view, usually by adding bulk items (ex : 50 items ) to list using datasheet view. ...
2
votes
0answers
18 views

SPListItem.BackwardLinks equivalent in CSOM, JSOM, or REST?

In the Server API for SPListItem there is a property called BackwardLinks that returns a collection of items that link to the item. I don't see the same property in CSOM, JSOM, or REST. Is there a ...
4
votes
4answers
62 views

Does SPList.ItemCount equal SPList.Folders.Count plus SPList.Items.Count?

I'm trying to do some inventorying of SharePoint 2007 content and have been scratching my head over this for a while now. I understand from MSDN that SPList.ItemCount counts all folders and items ...
0
votes
0answers
21 views

How can I return differences between versions and access properties that changed?

i have a list in SharePoint 2010 that has fields "title,count" .one of the fields (count) possible to change. I FROCE TO USE CSOM CLIENT SIDE OBJECT MODEL ... NO SHAREPOINT.DLL BUT ...
1
vote
4answers
68 views

Give permission to List item in Document Library

I want to restrict users to view list items which are not created by them. Example: If I create a list item in a document library, Only I can view it, others should not see that information) Is ...
0
votes
1answer
46 views

Change a property in an ItemUpdated event receiver

I have a very simple code but I can't change a property in an ItemUpdated event receiver public override void ItemUpdated(SPItemEventProperties properties) { base.ItemUpdated(properties); ...
0
votes
1answer
30 views

How to track web request made to sharepoint site from remote computer

I am trying to connect IBM datastage application to a sharepoint list using soap web services. I am using GetList and Getlistitems to get the data from sharepoint list. While doing this i can ...
1
vote
0answers
27 views

Replace default List View Web Parts

As the title explains, I am trying to remove the default Web Parts that are associated to list items and replace them with my own custom web parts. Here is what I've attempted so far: SPList list = ...
1
vote
1answer
107 views

How to add grid lines to display form of a list item

I am trying to figure out how to make my display item form look like a table. I am using SharePoint 2013, and currently, the display form can be a bit difficult to read without lines separating ...
0
votes
2answers
38 views

add an SPListItem from a web part

I'm in a sandbox solution. I'm trying to add some items in a list from a click button in my webpart. It seems easy but with sandbox everything comes difficult. Here is my code and I've an exception ...
0
votes
3answers
219 views

OfType<SPListItem>() says SPListItemCollection does not contain a definition for OfType()

I'm using Linq to SharePoint rather than CAML to query list data from SharePoint. See the code I have written: SPList productsList = SPContext.Current.Web.Lists["Products"]; ...
0
votes
1answer
53 views

Error in setting up custom edit form for a List Item (SharePoint 2013)

We have a list for which we wanted to bind a custom aspx page for editing the list item. we have written the following sample console application to check it. public class Program { public ...
0
votes
0answers
36 views

Existing list items not showing added new columns to add values

I have created a list in SharePoint 2013 with 3 columns and added 2 items to that list. Later I have added 2 more columns to the list and its content type. But when I try to edit the existing 2 ...
0
votes
2answers
65 views

Redirect after deleting a list item

I have a requirement wherein I have to redirect the user to the homepage, after a list item is deleted. Right now, the corresponding list is shown after the deletion. How can I accomplish this? I ...
0
votes
0answers
71 views

Why is file still locked after successful SPFile.ReleaseLock()?

I want to lock a file, perform some operation on it, then unlock it. This is what I have so far (I do this in an item event receiver for ItemUpdating): try { ...
0
votes
1answer
29 views

get value from splistitem

I'm face to a strange issue. I get an splistitem with a caml query ->that's ok and validated with caml query builder. After that, i'm try to get the title or any other meta of the item. Here is how ...
1
vote
2answers
48 views

Replacement for Item Level Permissions

I have a SharePoint calender list and where i have given item level permissions for each event through designer workflow using the impersonation step. But now on the production site the number of ...
0
votes
2answers
118 views

Load more list items on scroll

I am showing the first 5 list items on the page (in one div). Div has vertical scroll bar. I want to show the remaining 5 items on when scroll goes down end. I am using CSOM to fetch list items. Any ...
0
votes
1answer
43 views

Where does a list item go when it is deleted using Server Object Model?

Assumptions: I have a custom SharePoint list with 2 items in it. In one case i delete one item from the list manually and check the recycle bin,here i find the deleted item. Now in the second case i ...
1
vote
1answer
147 views

Alternative to CSOM ListItem.get_item

The only way I know to load a sharepoint list via Javascript is to load it and on the current list item: var value = currentItem.get_item(columnTitle); I want to be able to load an item and on the ...
0
votes
3answers
102 views

Print / display list items on page

I am using SP2010. Using client object model in the CEWP (Content Editor Web Part), I can give alert for each item title. But I want to print all list items on the page. I tried with document.write() ...
1
vote
1answer
83 views

Sharepoint list items getting auto modified

Sharepoint list items getting auto modified. All the lists seems modified by a single user. But when checked with the user, he hasn't accessed this list at all. And the modified time stamps are all ...
0
votes
4answers
177 views

Need to have a default word document inside a new item form for every list item

I Have a requirement for having a word document in each and every list item that i create. Suppose i click on new item in sharepoint list, the new item form must contain an embedded word document by ...
2
votes
1answer
73 views

SPListDataValidationException in an event receiver on a task list with Overdue tasks

I have a task list called Finance Department Tasks on this task list i have created an item updating event receiver which checks if all fields in the task list are filled and then sets the task status ...
0
votes
0answers
33 views

Unable to copy the Enterprise Keywords to the other list item

I have a picture library in which there is an event receiver which will copy the item value to the other picture library. There is one column i.e. Enterprise Keywords in the picture library. I have ...
1
vote
2answers
384 views

Populate a list of links through powershell

I have my webapp, my webs and a list created. My point is that I would like to populate my lists with values at the time of my deployment, which is done thanks to a powershell script. So I would like ...
2
votes
1answer
204 views

loop splistitem in folder in powershell

I'm trying to loop all splistitem in a folder of a library. I can get my library and have folder but i'm not able to get the items inside the folder. When i display the listitem for folder, i've the ...
0
votes
0answers
126 views

Archive or Move files based on a given Created Date range to another Library Using PowerShell

I am trying to archive select files from a SharePoint 2010 document library by moving them to another library. The files to be moved are selected based on their created date within a given time span. ...
1
vote
2answers
473 views

How to display current month items only from SharePoint list with caml query

how to display current month items from SharePoint list with query.
0
votes
1answer
260 views

Copy ListItem from one list to an other by ribbon custom buttom

I try to create a new button in the ribbon. When the person select a list item and click on this button this item will be copied to another list. CommandAction=""javascript: var context = ...
0
votes
1answer
28 views

Workflow queueing

I have a large list that needs to have every item in it updated nightly, with several fields recalculated and so forth. Currently it is updated en masse overnight by an application I wrote that is ...
2
votes
1answer
354 views

Exception when getting the value of field in SPListItem

Hi Guys I have this problem: I query a list using Caml. items = list.GetItems(query); This returns 6 items and works ok. Then I do: foreach (SPListItem item in items) { var title = ...
2
votes
3answers
105 views

SPServices is the Document Checked Out SP2010

I was wondering if anyone knew how to tell if an item has been checked in or out from SPServices? I am able to get all of the nodes but I do not see one which captures the checkout. Is there a way ...
6
votes
3answers
116 views

SPList.GetItems(view) vs SPList.GetItems(query)

Which solution from the two is the most efficient one: 1. Using SPList.GetItems with a given view as a parameter 2. Using SPList.GetItems with a given query as a parameters and then retrieving from ...
2
votes
2answers
145 views

“nativehr” error while trying to delete list items through ProcessBatchData

Plain and simple, I'm trying to delete a massive amount of items from a list as quickly as possible using a c# app, and have seen references to batch processes being the best way to do this. Not ...
3
votes
1answer
902 views

Help with getting the value of a look up field

Currently, I am using an ajax request to access the list items. The fields that are not lookups come as expected but the lookup fields come across as an ID of the object that corresponds to its ...
1
vote
1answer
82 views

User loses permissions to list item temporarily

I have a huge list with articles (shop with 6000 articles) and there is a timerjob that runs like every 3 hours that updates the stock on all the articles based on the stock returned from an external ...
0
votes
0answers
22 views

Line breaks doesn't detected when adding list items from csv

I have a csv that I export from excel by using google spreadsheet. I can add the items to the list with these codes; foreach($item in $vessellist) { $ni["datecol"] = $item.COL1; ...
2
votes
3answers
223 views

Get SPListItem by UniqueID

I'm trying to retrieve AN SPListItem from his UniqueID. I can have his document library url like http://mysharepoint.be/MYDOCUMENTLIBRARY but when i try to get the SPList from the name ...
0
votes
1answer
202 views

Bestway to store and manipulate SPListItemCollection results

I get a SPListItemCollection in my program. I use this collection to show the items in a DataGridView display. I need to filter items based on a requirement. But .Add() or Delete() does changes to ...
0
votes
1answer
219 views

Unable to set TaxonomyFieldValueCollection to SPListItem

I have a taxonomy field which is muti-allow. I have placed a taxonomy picker control in the application page and the values which are entered in that control are to be set in the list. My code is as ...
0
votes
0answers
38 views

WCF Service to fetch never checked in items of all other users, bulk upload.

I have written a WCF Method to get never Checked in items of all other users. App Pool account used to run the service is Domain\user1. My report only gives me never checkedin items of Domain\user1 ...
2
votes
1answer
200 views

“User cannot be found.” Error While Updating List Item

I'm experiencing a weird error while trying to update the author and editor on some files in a site, but not all, and the behavior is strange and inconsistent. The code: SPListItem item; int newID; ...
3
votes
1answer
106 views

Formula to save seconds and Milliseconds in Sharepoint List for DateTime type column

is there any way to hold datetime with seconds and milliseconds in sharepoint list where column type is 'DateTime'. currently my list column saving as below 1/9/2014 6:30 PM but i need to show it as ...
2
votes
1answer
911 views

CAML Query to Sort list items based on Modified date

while sorting sharepoint list items based on 'modified' column, its not considering seconds and milliseconds, i need sorting to be done on Milliseconds too, why because i have multiple list items ...
1
vote
1answer
132 views

Check user read access to a particular list item

I need to check if a user has read level access to a particular list Item. What would be the best approach 1) listItem.DoesUserHavePermissions(currentUser, SPBasePermissions.ViewListItems); //here ...