Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

1
vote
1answer
172 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 ...
1
vote
3answers
1k 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
2answers
405 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 ...
1
vote
1answer
2k views

How to get the sharepoint website url in a workflow from the current SPListItem?

I am using sharepoint 2010 and have created a workflow in vs. In this workflow I create some tasks and fill the title, bodytext and assign it to a user or group. In the bodytext I add an hyperlink as ...
1
vote
1answer
1k views

Odd and Even list item color

i saw a sharepoint where its list item as a background color (blue) for odd list item number and another (white) for even numbers. I dont know where i can set this. I looked into designer and i could ...
1
vote
1answer
978 views

Export-SPWeb with Where Clause to filter List Items?

I am trying to export list items to a local folder but I only want certain items, not the complete list.Is this possible? I have tried to iterate through the SPListCollection with the "Modified" ...
1
vote
4answers
1k views

Returning a SPListItem in conjunction with RunWithElevatedPrivileges

* *Clarification. Application == Site Definition. Direct Database access is out the window ** I've created an application for SharePoint that utilizes some new approaches to coding List Access. I've ...
1
vote
2answers
2k views

update SPList using csv via Powershell

knowing that is possible in PS, exporting SPList items to PS objects(link1 link2) what is the best way, to go into the other way: Create/Update an SPList from an exported csv or format-table.
1
vote
2answers
1k views

URL : How to add multiple Query String within Source Query String?

I have a simple question regarding the &Source Query String in SharePoint 2007, which normally SharePoint used in on List Item page, when click on "Close" button, it can redirect back to the ...
1
vote
2answers
125 views

Sharepoint list event

Is there a event which is raised when permission of a sharepoint list item is changed. For instance permission is granted or revoked on a list item
1
vote
2answers
2k views

How to get List Item from sharepoint list based on ItemID

Dynamically I am adding radgrid to the page. I need to retrieve list item from the SharePoint list. Say I have 10000 items in the list using SPQuery, I will get filtered records as 2000 items. Here ...
1
vote
3answers
2k views

Item name / title when creating a folder

I am trying to create a list item with a folder content type by setting it's content type id to a folder content type id. The folder is created successfully but the title is set as 1_.000, 2_.000 etc. ...
1
vote
2answers
145 views

Modifying ID (index) of listitems

So I ran into a situation where I have two lists containing the same information but in different languages (don't ask me why they chose to do it this way). Each item links through a workflow-created ...
1
vote
3answers
852 views

Exporting SPList

I'm iterating SPWebs and SPLists. When those lists fulfil specific requirements, I would like to export the lists in code, and later import them to another SharePoint environment (using code). How ...
1
vote
2answers
49 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 ...
1
vote
2answers
529 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.
1
vote
1answer
142 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 ...
1
vote
1answer
90 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 ...
1
vote
1answer
468 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 ...
1
vote
2answers
227 views

Deleting all items from a list and then adding new items will not give the new items id 1,2,3 etc

I have a list with 3 items. When I delete these 3 items and add new items they get ID 4, ID 5 and ID 6. But I want the new items to get ID 1, ID 2, and ID 3. Is there any workaround? This is how I ...
1
vote
1answer
228 views

What is the difference? (Checked out files)

I am in the process of writing a powershell script to work with checked out files and I stumpled on this article: Find All Checked Out Files My question is what is the difference between the two ...
1
vote
1answer
243 views

How do I get the current Editor of an Listitem while ItemUpdating?

How can I get the current Editor of an list Item in SharePoint 2010 during ItemUpdating? Problem is properties.AfterProperties["Editor"].ToString() throws and Exception cause it's null. This ...
1
vote
1answer
153 views

difference between item[] and item.fields[]

I want to retrieve let's say the title field of my item so what's the différence between doing these acces methods : SPList myList = properties.List; string mytitle1 = ...
1
vote
1answer
267 views

Disable approvement for a single listitem

I am creating a custom list in Visual Studio 2010 for SharePoint 2010. I want to set "approvement needed" for single listitems to false or disabled. My intention is, that a element can be approved ...
1
vote
1answer
330 views

Checking if list exists client-side

I'm developing a Silverlight web part and can't use server-side objects like SPList. I normally get items from a list called "Locations" which has two fields - "Title" and "WOEID". The problem is I'd ...
1
vote
1answer
115 views

Specific number of fields based on the difference of two date fields

Number of fields = DateField2-DateField1 Generate Number of fields based on the difference of those two fields. Possible? Sharepoint 2010 List Overview: I'm working on a financial project tracking ...
1
vote
3answers
2k views

Possible to load a SPListItem from the item url?

I have a FullTextSqlQuery that is returning the URL for a list item. I would like to create a new SPListItem object from that URL. Is there an easy way to do this, or will I need to peel apart the ...
1
vote
3answers
2k views

Why SPListItem.Update doesn't trigger workflows?

I have a workflow with Start Option "Start workflow automatically when an item is changed" and I have code that execute SPListItem.Update(), but this update doesn't force workflow to run execution. ...
1
vote
1answer
499 views

How to handle the ecb menu CSS?

I have hidden the ECB menu from the task/DocLib lists, and I am using jquery to truncate the title field into 50 char and remaining will be displayed in the jquery popup. Even though I have removed ...
1
vote
1answer
483 views

retrieving form values from NewForm.aspx?source=/_layouts/blah.aspx

I'm building a system that shows a list's NewForm.aspx to an anonymous website visitor, which they can complete and submit. The URL to the form includes "?source=/_layouts/blah.aspx", so after the ...
1
vote
1answer
329 views

How to detect SPFieldLookupValue from an SPListItem?

I have a SPListItem, with different fields (string, lookup, etc), that I have to iterate them and do different actions depending of the type. How can I detect if value is type String or type Lookup? ...
1
vote
1answer
1k views

How to get checked out SPListItem for current user by file name using CAML query?

I use SharePoint 2010 RTM and now I'm trying to get SPListItem, which was checked out by current user, using code like this: query.Query = "<OrderBy>" + ...
1
vote
4answers
71 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 ...
1
vote
0answers
28 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
135 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 ...
1
vote
1answer
88 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 ...
1
vote
2answers
440 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 ...
1
vote
1answer
86 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 ...
1
vote
0answers
83 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. ...
1
vote
2answers
349 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 ...
1
vote
1answer
342 views

Delete List Items Using PowerShells with Date Filtering

I've been trying to delete more than 10,000 list items in SharePoint using PowerShell. So far, this is what I've had [System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, ...
1
vote
0answers
118 views

send email to users including alert template with list items using visual studio?

I don't want to set list alerts when items created or changed. I want to send email(including alert template and all fields in item) to that user which not configured in sharepoint. My function for ...
1
vote
0answers
478 views

SPListItem.Update Not working

So I have this really simple function which updates a couple of fields on two different lists (one is a document library) The thing is on the document library does not updates any of the fields I need ...
1
vote
0answers
256 views

Get SPListItems based on contribute permissions, programmatically

I have a problem in getting the list items the current logged user has contribute rights on. I have this scenario: List A has read permissions for anonymous access. Group 1- Has contribute rights ...
1
vote
0answers
419 views

Can I set SPListItem Item.Id programatically

I want to delete some list items and recreate them using a csv file. I can see if I delete the items and then recreate, Sharepoint adds it's own auto icrement int. what if I want a set of fixed values ...
1
vote
0answers
197 views

SPSiteDataQuery without subfolder items?

I'm trying to use the SPSiteDataQuery to return the contents of several lists across a site collection. The problem I'm having, though, is that while there are only a few documents at the root level ...
1
vote
0answers
128 views

Is there a way to catch the transition of a SharePoint 2013 list item to Project Server 2013 project event?

As you may know, there is a feature in SharePoint 2013 that allows you to create a project in PWA from a list item (Ideation). I need to add a couple more settings for that list item and the resulted ...
1
vote
1answer
2k 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 ...
1
vote
1answer
207 views

Deleting SPListItem in event receiver - very long time

I have an event reciever with ItemDeleting action, in which i try to delete an item from another list (I cant realy use cascade delet behavior here, I need to do some stuff that requires the ...
1
vote
1answer
40 views

An event to be fired on editing a file

As title says, I need an event to fire when a listitems file has been edited. I appreciate this isn't as simple as it having it's own event, which is why I've tried to make use of the itemupdating ...