Represents an item or row in a list.

learn more… | top users | synonyms

7
votes
4answers
6k 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
7k 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
11k 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
15k 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
930 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 "{"readyState":0,"responseText":"","status":0,"...
5
votes
2answers
14k 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 ...
4
votes
3answers
18k 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 ...
4
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()) { ...
4
votes
1answer
961 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 list....
4
votes
2answers
145 views

Deleting Content type from “List Items” using Powershell

I want to delete a custom content type from all items that are using that content type in a list/library. Is that possible using powershell? if yes, then I want to know after deleting CT, which ...
3
votes
3answers
1k 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
2answers
79 views

SharePoint 2013 Unique Item Permission

I created a workflow for confidential documents to be approved in SharePoint Online 2013. However once the document is submitted to the document library, the submitter must have access to ONLY their ...
3
votes
3answers
239 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
478 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
8k 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 item-...
3
votes
2answers
10k views

Add ListItem to List using client object model

I am able to add new list item in sharepoint list using the CSOM using the below code : ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation(); ListItem ...
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
1k 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
809 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
8k 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
2k 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 it'...
3
votes
2answers
201 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
7k 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
489 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
2answers
132 views

Why unable to update columns in listitem using CSOM?

I am trying to perform a basic operation,updating a column in a list item of a list.Following is the code , List oList = clientContext.Web.Lists.GetByTitle("HomePageTab"); ListItem oListItem ...
2
votes
2answers
211 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 ...
2
votes
1answer
3k 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 Microsoft.SDK....
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); clientContext.Load(...
2
votes
1answer
489 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
538 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
15k 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
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
13 views

How to sort list items in specific sub-folder of the list after creation of new item?

I have a list with information (news). There are severel sub-folders in the list, and according to the content, a new list item shall be put in one of those sub-folders. If a new item is created in ...
2
votes
1answer
26 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
621 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 SP....
2
votes
1answer
434 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
2answers
420 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
1answer
35 views

Different permissions on item creation

Within SP 2013, is it possible to do the following in terms of permissions : Two different AD groups : Admins & Users. With only one list. When Users access this list, they can add/modify only ...
2
votes
0answers
22 views

Avoid generating empty listitem versions

In our SharePoint farm there are some lists with the listitem versioning feature activated. It works great, but it creates also a new version if a user saves without editing any fields. I know that ...
2
votes
1answer
61 views

Export list to Excel - 50'000 limit

We have a user that has a SP2013 list with nearly 100'000 items. In a previous SP2007 environment, they could export the entire list to excel. In SP2013, they are hitting a hard limit in Excel of 52'...
2
votes
0answers
25 views

How to get a side column without creating a new web part page in Sharepoint 2010?

I have a list with the following columns already on it. {Date, Request, Requestor,...,...} etc and I'd like to create a left column that has certain links. As shown in the image, that column contains {...
2
votes
0answers
45 views

Approaches to merge two issue tracking lists inside new list

I am working on 5 team sub sites, each sub site have 2 issue tracking lists which are based on 2 different custom content types. Now our customer asked us to merge these two issue tracking lists into ...
2
votes
0answers
164 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
290 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. ...
2
votes
3answers
40 views

List item permissions

I would like to create a list of ideas for employees to add. I want to have another column where only me can Approve/Decline ideas.. How can this be done?
1
vote
1answer
11k 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
7k 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 ...