Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

2
votes
3answers
100 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
108 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 ...
3
votes
1answer
192 views

SPListItemVersionCollection - iteration performance

This question is related to my issue described here: SharePoint 2010 Performance troubleshooting On SP 2010: Does anyone knows if there is some performance limitations while using ...
0
votes
2answers
1k views

Move Existing SPListItem to an Existing SPFolder?

Is there a way to programmatically move an existing list item (SPListItem) to a folder or do I need to make a new item that is a duplicate of the list item in the folder in question and then delete ...
3
votes
1answer
749 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
76 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 ...
2
votes
2answers
133 views

Dates and times in Properties vs Fields

I'm trying to roll my own archiver for SharePoint. I always try to let the underlying object serialize itself. Only when it fails do I try to use .ToString(). Anyway, while inspecting the Properties ...
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
199 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
170 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
2answers
66 views

SPCopyDestinationCollection.Add() Method Does Not Persist to the Database

I'm attempting to run a basic PowerShell script to fix a lot of broken "Send To" destination links that resulted from a site migration from one farm to another. I wanted to proof-of-concept this on ...
0
votes
1answer
189 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
36 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 ...
0
votes
1answer
657 views

Best way to check if SPListItem have been publish, on an ItemUpdate EventReceiver

I have an EventReceiver associated to DocLib template id, triggered at every ItemUpdate. Everytime an SPListItem is publish I want to execute my code. (Required check out and Content approval are ...
1
vote
1answer
124 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 ...
3
votes
1answer
95 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
747 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 ...
0
votes
1answer
2k views

Programming to retrieve list items in a SharePoint list using Javascript

I have requirement which is Retrieve List Items in a List(list created through OOB) Display those list items on the sharepoint site by binding to repeator control Using javascript and client object ...
3
votes
1answer
689 views

Get last major published version of items returned as DataRow (from SPSiteDataQuery)

Does anyone know the solution for this? If I'm querying items by SPSiteDataQuery I receive a DataTable with DataRow objects. I could fetch the current version of an item and check if it ends with ...
6
votes
2answers
7k views

Fastest way to retrieve an item by title?

Currently I am using a foreach loop to find the item I want by its title using the following code: SPList list = web.Lists.TryGetList("DocumentLibrary"); foreach ...
0
votes
2answers
2k views

Sharepoint 2007 Powershell: $item.update() gives error that file has been modified

I am trying to programmatically update some metadata for a sharepoint item using powershell. Here is my code: $web = getWebByURL("http://test-site/spadmin/") $itm = $web.lists["Documents"].items[0] ...
0
votes
1answer
1k views

How do I update a list item using REST and Data.js?

I want to write a simple SP hosted app that edits a single list item in a list in the app web. Getting the list item collection is fine. Then I want to pass the result to a function that changes the ...
1
vote
1answer
87 views

Potential memory leak with SPListItem?

I have created a Timer Job that iterates through a list of 100,000 items and finds the ones that are older than 120 days and "moves" them to a new site collection for archival. I am using a ...
2
votes
2answers
1k views

How to add a blog post programmatically?

I'm trying to create a C# script that will allow me to import blog posts from a different system (exported as CSV) into a SharePoint blog. I have found a script for comments to a blog post, but I'm ...
0
votes
2answers
400 views

Update Editor (Modified by) for publising pages

I am trying to create about 1000 publishing pages using powershell. The powershell script reads data from a xml file. I have to update Modified By field for all newly created pages. I have used ...
0
votes
0answers
52 views

Get SPListItem by title is very slow

I want to get a SPListItem by title. I´m using a caml query to filter the list (Around 1000 items). There is only 1 item with the title in the list. My problem is now that the performance is really ...
0
votes
1answer
191 views

Why ItemUpdating is calling after ItemAdded event in Sharepoint-2010?

I am developing Sharepoint 2010 application where I have been using SPItemEvent to deal with ItemAdded event. One thing surprised me that ItemUpdating event is calling after ItemAdded event in List. ...
0
votes
1answer
92 views

Add additional user information to SPList as list column

I have a List Tickets with a field Client. This is a user from our AD and displays the name of the user. We now need to display the country and the location the user resides in to additional fields. ...
0
votes
0answers
32 views

list items in KPI page is overlapped with KPI page

I have created a KPI list in sharepoint 2013.In this list i have open menu option,it is shown by three dots like ... When i click on it a list is open,but this list items are overlapped with KPI page ...
0
votes
3answers
1k views

Is it possible to determine if a given URL represents an SPListItem?

I am wondering if there is some sort of way to check a URL to see if it represents a list item before calling SPWeb.GetListItem that I haven't found. I have code that needs to retrieve a list item ...
0
votes
3answers
1k views

ArgumentException with Export-SPWeb Lists

PS C:\Users\Administrator> Export-SPWeb "http://win-oql2facn6h8/" -itemurl "List s/Disney" -path "c:\Backups\disney.cmp" Export-SPWeb : ...
0
votes
1answer
211 views

Which of these is the best way to get a list item collection?

Performance-wise which of these methods is the best way to get a list item collection, and why? SPList list = web.getlist("listurl"); SPListItemCollection items = list.getItems(query); ...
1
vote
2answers
327 views

spfielduservaluecollection.remove not working

I want to remove the user from the list item from the column of type person or group and it is multi-valued. My code is: private void DeleteUserFromList(SPUser userDeleted, string ...
0
votes
1answer
1k views

How to read managed metadata value from SPListItem

I have a list in which there is one column which stores the Employee Department and it is of type Taxonomy field and it is stored in the user profile property. I want to get the display value of that ...
8
votes
2answers
682 views

Is it possible to create a “Link to a Document” in a Document Library using a CAML Batch Command with UpdateListItems?

I have a Document Library in WSS 3 which has the "Link to a Document" content type enabled, and I want to use a batch command (via lists.asmx updatelistitems) to create a series of links. Here is the ...
0
votes
0answers
29 views

Hide Field on Specific SPListItems

I am trying to figure out if I can hide/show a field for specific list items using the SP object model. I am aware that you can set the SPField.Hidden property however it appears as though this does ...
0
votes
5answers
2k views

Unable to get values in Item Added event receiver

I have created an event receiver which will be executing after the item is added to the list. I want to make the sub site based on the values entered in the list. My event receiver code is: ...
1
vote
1answer
404 views

Working with taxonomies via PowerShell: Removing a tag from an item

So I have a term store created and populated with terms, and I'm writing a script to retroactively tag items. During preliminary poking around, I found I can successfully tag an item with simply ...
0
votes
3answers
45 views

Good solution for individual list for each user in the intranet?

I want to display items on webpart that the user have created and also can delete the items. Whats a good solution for this? I was thinkin of creating a regular list that contains all of the items and ...
1
vote
2answers
335 views

Enterprise Keywords (TaxKeyword) Error: Value does not fall within the expected range

I am only trying to retrieve the value of the Enterprise Keywords column in my SPList. I do this by: if(item["TaxKeyword"] != null) Log(item["TaxKeyword"].ToString()) The only way I can find to ...
0
votes
1answer
679 views

The field you are trying to update may be read only error while adding item to list programmatically

I am adding a list item in from an application page which is redirected from web part page. My code is : protected void Page_Load(object sender, EventArgs e) { SPSite site = new ...
0
votes
0answers
27 views

How to create Custom ListItems Template/ user control

In WPF, you can create a "List Item" template and have a list-box use this template for every item in the list. I would like to do the same in SharePoint 2010. Can anyone point me in the right ...
0
votes
1answer
254 views

Document Library items not updating via UI or code. System metadata (last modified, modified by, etc.) updating

I am having a strange issue with one of my Document Libraries. It is the document library created by the publishing feature "Documents." Here are the symptomps and what I have done so far. Any help ...
2
votes
3answers
544 views

Disposing item.web

I have read this article and known which objects should be disposed. But I doubt whether oItem.Web returns the same object as spcontext.current.web object or it creates new one. If it creates new, I ...
0
votes
2answers
528 views

ItemEventReceiver - ItemDeleting not working with a document library and referencing list

I have a custom list that has a GUID column which refers to the UniqueId of a document in a document library. Every time I upload a document, it should add an entry in this list and populate the ...
2
votes
1answer
5k views

How to retrieve all items from a list (with custom fields) by javascript object model

I need to get all my custom fields from my list by Javascript Object Model.. The code I wrote down is this: var items; $(document).ready(function () { ...
1
vote
2answers
359 views

SPListItem.Attachments - what type cast?

When iterating through a SPListItems SPAttachmentCollection what type cast am I supposed to use? SPFile or SPFileStream or something else? I want to display the item's filename and when it was ...
0
votes
0answers
434 views

C#: cannot get listitem field value but works fine in powershell?

back again with a strange issue. Using powershell I can get a handle on a SPListItem and do Item["My Field"] which prints its value. However, in a C# custm workflow activity, when I attempt to do ...
0
votes
1answer
198 views

Getting the properties of an item through web services

Is it possible to get the SPListItem.Properties property of an item through one of the out-of-the-box API web services in SP 2013?
1
vote
2answers
1k views

Unable to update item using powershell when event reciever is enabled

I have a powershell script that I am using to update some list items programatically. It seems to work as I expected when I disable the event reciever that is associated with the list however when I ...