Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

2
votes
2answers
326 views

Unable to update list item - Additions to this web site have been blocked

I am developing a SharePoint job. In the public override void Execute(Guid targetInstanceId) method, my code goes: SPSecurity.RunWithElevatedPrivileges(delegate() { int count = ...
1
vote
1answer
1k views

SharePoint 2010 - get list item from search result

I'm using FullTextSqlQuery to search items on specific list. Query returns results properly. Now I'd like to get SPListItem from search results. As I searched Internet, I found couple of examples, but ...
0
votes
1answer
806 views

Looking for a way to replace the File in an SPListItem

I have implemented a system for publishing documents from a document library to a Document Centre. This uses a Send To Connection set up with the "Move and leave a link" option. When this is used the ...
1
vote
3answers
430 views

Do I need to do an update after set permissions on a listitem in the ItemAdded event receiver?

I have an event receiver on itemAdded. I set some permissions like below. SPRoleAssignment role = new SPRoleAssignment(spPrincipal); ...
0
votes
2answers
402 views

The SPListItem provided is not compatible with a Publishing Page

Whenever I try to save og check in mmy Home.aspx pagelayout welcome page I get Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page. And this: ...
0
votes
0answers
20 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
0answers
62 views

Move listitems in SharePoint Hosted app

I am trying to creating a SharePoint 2013 Hosted app that get a selected listitem and move it to another folder of library in the same web. When I debug my code everything runs without any problem. ...
3
votes
2answers
717 views

Attach ListItem to TaskItem

I've created a custom approval worfkflow for an listitem. Now I need to see the values of the item in the taskitem. So I think one way would be to attach the ListItem to the TaskItem. Does anybody ...
0
votes
2answers
3k views

add value to text field in list with ItemAdded event receiver

i have a textfield in a list, that i want to fill with custom text when a item is being added. nothing happens when i try to debug it, the breakpoint in the method is never reached. Please can ...
0
votes
3answers
482 views

SharePoint 2013 Webpart - Multiple file upload

I want to add the multiple files functionality to my custom webpart in C# .NET 4.5. I want the same functionality as the out of the box multiple files add feature when you create a list item via the ...
1
vote
1answer
1k views

Adding SPListItem using SPWeb.ProcessBatchData method

I am looking for adding SPListItem using SPWeb.ProcessBatchData method. Could any one please help me on syntax for adding list item to my custom list.
1
vote
2answers
74 views
0
votes
1answer
31 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
20 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
112 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
5answers
1k views

List Item Timeout

I am trying to open/close the a custom list item with 11500 items but I am getting an error which seems to be a timeout error, i checked the logs and found 'Unable to execute query: Error 0x80131530'. ...
1
vote
4answers
1k views

How to delete an item on ItemAdding

I want to performe some Action on ItemAdding. I have a Custom List that reacts on Item Creation. In particular on Item Adding performs some action using the After Properties.. If, at this level, i ...
2
votes
3answers
52 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 ...
5
votes
3answers
74 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
157 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
900 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 ...
2
votes
1answer
45 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 ...
2
votes
1answer
137 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
33 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
101 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
19 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
102 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 ...
2
votes
3answers
2k views

Randomly: Item does not exist. It may have been deleted by another user

I have a rather curious issue with some workflow tasks. My (state machine) workflow creates a handful of tasks while running. Users interact with the tasks to move the workflow between its states. ...
0
votes
1answer
63 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
56 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 ...
2
votes
0answers
123 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; ...
0
votes
1answer
66 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
27 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
582 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
78 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 ...
2
votes
1answer
48 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
187 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
343 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
595 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 ...
4
votes
2answers
6k 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
1k 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
565 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
58 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
965 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
135 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
43 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
71 views

Getting Item and value from list by Specific Data

I would like getting a specific item from a specific list but i don't have ID, just a field (column) value. Here's my list: On the site, i have only the name...i'd like to recover the paid leave ...
0
votes
1answer
132 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
74 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
29 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 ...