Represents an item or row in a list.

learn more… | top users | synonyms

7
votes
4answers
5k views

How to run javascript code only when list item gets deleted?

ANSWERED! See bottom of original question for the working answer. I'm trying to find out how I can run a piece of JavaScript code the moment a list item gets deleted. So it should be some sort of ...
7
votes
1answer
6k views

CSOM Get ListItem of Folder

In an application I'm working on, I'm interacting with SharePoint (2010) via the .NET Client-Side Object Model, and am trying to account for a large number of possible configurations of document ...
7
votes
1answer
10k views

How can I restart list item ID numbering at 1?

I deleted list items that include an ID from the list and the recycle bin. When I create a new list item, the ID populates where the last line item left off. Now is there a way to make a new ID ...
6
votes
3answers
14k views

Cannot get field value of list item through JavaScript

I try to get the value of a list item (that is currently selected). I know that I must load it into the context but even with loading the field explicitly I get the following message. Microsoft ...
5
votes
3answers
855 views

Updating a single list item based on relative URL

Is it possible, using SPServices, to update a specific list item when all I have is the file path? For example, I have a file located at /site/library/folder/file.txt and I want to update a single ...
5
votes
2answers
2k views

Create Page using REST API

I have spent two days trying to create a page with a specific Content Type in Pages list using REST API. It goes into error handler and returns ...
4
votes
1answer
943 views

ItemAdding event on list item to target a specific custom list

I have an ItemAdding event handler created and targeted to a Custom List. The event receiver seems to be firing on all custom list on the site. I wonder if I should target it to a specific custom ...
4
votes
1answer
10k views

How to show names of attachments from a list item in a column?

I have an announcements list and some announcements have multiple attachments. The view is set to show the attachments, but it just shows this paperclip icon which probably means the list item has ...
3
votes
3answers
16k views

How do I get the terms used in a TaxonomyField?

I have a document library with a custom managed metadata field. I want to get the terms that are used for a particular item. I can get access to the item through the object model, and can get to the ...
3
votes
3answers
1k views

Best practice to add list item in SharePoint Server OM?

from the below codes, which one is best practice and performance wise also:- CASE 1: using (SPSite oSPsite = new SPSite("http://website url/")) { using (SPWeb oSPWeb = oSPsite.OpenWeb()) { ...
3
votes
3answers
794 views

Two different documents with same name become one

If two users have two different documents but same name, when the second user saves his file in same document library, it overwrites the first user's document and the document gets new version. Is ...
3
votes
3answers
203 views

How to get the state of the document whether it is locked or not in SP2013?

I have document library with workflow attached with it. There are metadata columns attached with the document library i.e. Test1 & Test2 I am modifying the value of the Test1 & Test2 in the ...
3
votes
1answer
99 views

Dynamic link creation for each list item

I want to get the ID of a list item each time an item created. I have a list with couple of columns, one of columns is type Image. I want to have a list view which will show only the column Image, ...
3
votes
3answers
7k views

Edit multiple list items in one shot?

I have a list that contains many items. I'd like to give my users the ability to select 10-20 items by "checking" them and then edit them all at once. Certain fields (item name, id, etc.) are ...
3
votes
1answer
2k views

SharePoint 2013 auto-hosted app: Assigning unique permissions to list item programmatically fails with Access denied

I have a SharePoint 2013 auto-hosted app. The app is really simple. It has a list with a remote event receiver on ItemUpdating and ItemUpdated. What I have been trying to do is to assign unique ...
3
votes
2answers
995 views

SharePoint 2010 Save ListItem without closing

Is it possible to save a ListItem without closing the modal dialog in SharePoint 2010? Possibly by replacing the save button on the Ribbon with a custom button that calls the submit function and keeps ...
3
votes
1answer
442 views

BreakRoleInheritance and Inherit Permissions ListItem

I'm having a little difficulty with the BreakRoleInheritance in keeping inheritance of permissions in a users OneDrive for Business Documents list. By default the users Documents list has two ...
3
votes
1answer
7k views

How can I display list item data on a workflow initiation form?

I have a master list (Projects) containing all the data about the projects my clients' employees (technical writers) are working on. When it's time for the writers to grab sign offs on the project ...
3
votes
1answer
1k views

How to disable multiple select on lists in sharepoint 2010?

thank you for reading my question! I have a little problem with lists in Sharepoint 2010. The goal is to disable the checkboxes on the left of each item, but to keep them selectable. I know that ...
3
votes
2answers
132 views

How do I display only the title on an event in the calendar?

Right now, it is currently showing up as the date and the title but it is all mushed into one line. I would like to change the default settings for all future events to be ALL DAY events, however ...
3
votes
4answers
6k views

Create list item in sharepoint list using REST API using C#

I have a requirement to create list item in a sharepoint online list using the REST API and c#. How to achieve this. Most of the article show using REST API in jquery and Javascript but I have a ...
2
votes
3answers
184 views

Limit only one entry per day per user in sharepoint list

sharepoint 2013 I have a list where users should be able to create only one item per day (every user can create only one item per day). Any help or suggestion how to manage this?
2
votes
1answer
2k views

Delete item from Client Object Model

I'm trying to delete an Item from a list using the following code: using System; using Microsoft.SharePoint.Client; using SP = Microsoft.SharePoint.Client; namespace ...
2
votes
4answers
5k views

Archiving list items

What would be the best way to archive items from one list to another. Is there OOB functionality for that or do I have do code this by myself? If I had to code it, what would be the best approach?
2
votes
2answers
3k views

How to add new item in Links list using Managed Client Object Model?

I have created a standard SharePoint Links list, using Managed Client Object Model (for Silverlight). Here's the code: ClientContext clientContext = new ClientContext(sitePath); ...
2
votes
1answer
334 views

Include Rich text web part in document template

I have a workflow which creates a word document in document library, when a new item is created in list. The list has a rich text field. The document is created successfully with all the contents but ...
2
votes
3answers
1k views

Automatically add value to column of new list item?

How can I automatically add a value to a column when making a new list item? Like, if I make a new item in a list named "Announcements", and I want the "Expires" column to automatically get a date 3 ...
2
votes
2answers
523 views

Updating a document library list ltem in ASP.NET code behind file

I am trying to update a list item's custom property in asp.net code behind file but getting Error 500 without any explanation or further error, while debugging I realized it happens while calling ...
2
votes
1answer
14k views

The property or field has not been initialized. It has not been requested or the request has not been executed

I am getting this error and from what I understand this is when you try and access columns from the list item. I have tried various things including the line below: clientContext.Load(items, eachItem ...
2
votes
1answer
21 views

What is the difference between Title and TitleResource

If I am localizing SharePoint a lot of Fields have 2 public properties: Title TitleResource What is the difference between them? Currently I am localizing a Field with this piece of code: ...
2
votes
1answer
401 views

Fetch list item attachment by name

I am trying to write custom code for list item attachments. As it is not allowed to overwrite them, I will check if file already exists. If yes, will delete and then upload again. I found a method ...
2
votes
2answers
341 views

JSOM Anonymously CAML query list items

I am attempting to query a list using CAML via JSOM and am getting the error message The method "GetItems" of the type "List" with id "{GUID}" is blocked by the administrator on the server. I have set ...
2
votes
3answers
5k 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 ...
2
votes
1answer
190 views

Custom action sequence number

I do not understand how does the sequence number work in custom action definition. How can I decide my custom position (which number should I use?) <CustomAction Sequence="600">
2
votes
0answers
131 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 ...
2
votes
2answers
287 views

Comments for Content Types

One piece of functionality I thought was oddly unincluded in SharePoint 2010 was the ability to create comment trails for content types other than blog posts and to a lesser extent discussion boards. ...
1
vote
1answer
5k views

How to get the selected items of list in the javascript

I have one picture library, where several pictures are stored. In that picture library I want to put such a link that will download selected images. To achieve this functionality, I thought to prefer ...
1
vote
1answer
8k views

SharePoint 2013 REST-API: Reliable way to retrieve all field values of a list item?

I am trying to retrieve all field values of a specific list item via the REST-API of SharePoint 2013. The values will be used for further processing. The goal is to retrieve all field values ...
1
vote
1answer
1k views

SharePoint 2013 REST API: How can I clear a non-string field value?

I'm using the SharePoint 2013 REST API (my last choice, technological constraints require using it vs CSOM) and am encountering an issue when trying to clear any non-string (date, number, etc) field ...
1
vote
1answer
4k views

Get UniqueId from listitem with Javascript/Ecmascript (Sharepoint 2010)

Is it possible to get the Unique Id from a listitem in a custom SharePoint 2010 list? I've added a custom ribbon action so far where I can get the id, but that's an integer (0,1,2,3,...) I need the ...
1
vote
1answer
467 views

Get list items even if user does not have access to those items

Is there a way to get items from a list even if the current user does not actually have acces to them? SPSecurity.RunWithElevatedPrivileges does not seem to work! I have a special case in which I ...
1
vote
1answer
43 views

Display the Actual “Related Item” in a Task List using JSLINK?

How would I go about displaying a link to the actual related item within a task list? Currently, when I display the related item field in the view, all it shows is '1 Related Item'. Is it possible ...
1
vote
2answers
45 views

Item permissions based on field

how can I do list with about 16000 items, which can view and edit only about 2500 users (every only its items, so about 6...). It would be based on column with user number. I found for example this ...
1
vote
1answer
1k views

Upload list item attachment using JSOM

I am trying to upload list item attachment using the below code. There is no error in the code and all the variables are present with proper values but in uploadFile method it goes to error handler ...
1
vote
1answer
100 views

Advanced version history in SharePoint

Is there out the box advanced version history for List items which show when, which metadata change by who?
1
vote
2answers
3k views

Add items to Sharepoint Online list using Web Service provided by sharepoint

I want to add a new item to a sharepoint list using /_vti_bin/Lists.asmx web service. I have used the following code SharePointListService.Lists currentListService = new ...
1
vote
1answer
1k views

Item-level permissions on document library

I ultimately want to grant users edit permission only on the items they created. According to this article: http://www.hersheytech.com/Blog/SharePoint/tabid/197/entryid/28/Default.aspx I can do ...
1
vote
2answers
6k views

properties.ListItem is NULL on item added Event Receiver?

The following articles... http://moonistahir.wordpress.com/2008/05/05/properties-listitem-in-itemadded-is-null-workaround-to-get-listitem/ ...
1
vote
2answers
529 views

SharePoint Online Iterating through Document Libraries CSOM

I am trying to iterate though a document library and set each document/items within to inherit permissions (at the moment each doc/item is using uniquer permissions). I am able to get the specific ...
1
vote
3answers
76 views

Create list item which will link and navigate to new list item?

I've been trying to get this to work but need some direction. Got a requirement for a list item that on submission would create another list item and link to it. So basically a lookup on the ID of the ...