Questions tagged [splistitem]

Representation of a list item within the SharePoint API.

122 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
462 views

SharePoint Online Ribbon Custom Action : Pass multiple itemId in CommandAction's Url

I am developing custom ribbon action using SharePoint hosted app. and this is working fine.When i select any list item and click on custom action then i can get selected list item id. <...
3
votes
0answers
44 views

SP13 - How to stop sync ListItem[where item is updated] in variation list

I have two sites "/EN" - (source) and "/DE" (target). Where i add ListItem in list on "/EN" Site, he go to "/DE/". I want where i edit the same ListItem in "/EN", content in listItem does not change ...
3
votes
0answers
439 views

Fill Target audience field in a list using PowerShell - Sharepoint 2013

I need to set target audience field in a list while populating the list with data. How can I achieve this using PowerShell command. I found this article. But it didn't worked as it throws Column '...
3
votes
1answer
1k 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 ...
2
votes
1answer
36 views

Power Shell script does not return result of Library

I have written a below PowerShell script to get items of a library for SharePoint 2013 $spData = $web.Lists["EmployeeDocument"] -as [Microsoft.SharePoint.SPDocumentLibrary] $fieldsItems = $spData....
2
votes
1answer
111 views

update people and group list item by name and dont have user id/user name/email id Sharepoint 2013 by providing name in JSOM

In my current scenario am having an excel with all the metadata and person name. This details I have to upload to Sharepoint 2013 list using JSOM. Am not sure how to handle people and group column ...
2
votes
1answer
221 views

SPListItem : CopyFieldMask , Value does not fall within the expected range C#

When I am trying to update a list item, I get an error CopyFieldMask , Value does not fall within the expected range My code is as follows: SPQuery oquery=new SPQuery(); oquery.Query= "<...
2
votes
0answers
92 views

How do I determine why some records within my SharePoint list are read only?

I'm running a snippet of code to update my SharePoint List through Access 2013. It seems that my code works for some records, but other records will give me the "Cannot update. Database or ...
2
votes
1answer
890 views

Remove list item permissions by role type using JSOM

I'm looking for a good way to remove all list item permissions on a certain list item of a specific role type using the JavaScript object model. With myListItem.get_roleAssignments().getByPrincipal(...
2
votes
0answers
98 views

SPQuery returns wrong values

The Setup I have a list with 2 extra columns. Target Audience: Choice (Relevant/Everyone) Tags: Managed Metadata field (multiple) When I choose in the "Target Audience" field "Everyone", this item ...
2
votes
0answers
305 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
0answers
132 views

Bulk file upload creates multiple versions of all files except last file

I have an interesting (well to me anyways) problem here. I am doing a code based mass upload of documents into a SharePoint library with a twist. The twist is that the file's last modified date ...
2
votes
1answer
377 views

How to import one single row of data from excel to one list item in a SharePoint 2010 list?

I have a problem where we want users to attach a file to a new item and the SharePoint list will automatically read on row or column of data (maybe 20 cells-worth of data) and populate some additional ...
2
votes
0answers
290 views

Is my Object Casting Model acceptable?

I'm creating a SharePoint application, and am trying some new things to create what amounts to an API for Data Access to maintain consistency and conventions. I haven't seen this before, and that ...
2
votes
0answers
368 views

Validate list item with javascript API

I want to develop a custom datasheet view to edit a list. I add item through the javascript API. The problem is that the service doesn't control fields value. For example : - I add an item with a ...
2
votes
0answers
474 views

Sharepoint - Programatically check Project Task list hierarchy

I have a Project Task list in Sharepoint that contains Summary Tasks, which contain Tasks. What I would like to do, is to check which task items of this list are children elements of which summary ...
2
votes
1answer
623 views

Rest api - Query Multiple Sharepoint lists for a listitem with a given property value

I have 3 sharepoint lists with the same columns. I need to fetch the list items with a particular property value, eg. CustomName property with value 'Test' from all the 3 lists. Instead of looping ...
1
vote
0answers
44 views

Large list backup in sharepoint online - suggested way

we need to backup a large list in our sharepoint online environment, the following things needs to be considered The List has more than 10000 items The List has a lookup column Our environment does ...
1
vote
0answers
108 views

Issue with saving attachment to a new list item

I'm having an issue with adding attachements to a newly created SPList Item, the list item is created via a custom submission form built with ASP.NET and C#, I'm using the asp:fileupload control as ...
1
vote
0answers
29 views

Sharepoint list column shows no result on “Find an item”

I have a custom SP List that has a few columns consist of Full Name, extension, Job title, Department and so on. When I search using the list "Find an item" box on department there are results ...
1
vote
0answers
80 views

Get all fields from the Generic List

In my project I am creating custom column of the 'Multiline' type. destList.Fields.AddFieldAsXml(_fieldXml, true, AddFieldOptions.AddFieldToDefaultView); destList....
1
vote
2answers
310 views

Console app not triggering ItemUpdated event in list

I have created a console app in C# .Net. The app is updating two fields in an item in a list. The list has an eventreceiver and when the item is updated it copy every value from all fields to another ...
1
vote
1answer
207 views

JSOM validate list item without updating

I have a custom form on a SharePoint page that is intended to add and update list items. I want to validate values before updating. I found both the SP.ListItem.validateUpdateListItem and the SP.Field....
1
vote
0answers
50 views

SP13 - Approve ListItem in source create new version(sync) in target label

I have two variation list - source list and target list and have propagated list item from source to target list. Where i approve new listitem in source list, Variations Propagate List Items Job ...
1
vote
2answers
150 views

SharePoint 2013 Rogue Workflows and No Workflow Associations

I am fairly new to SharePoint, and I am having trouble with my workflows not terminating. I have a workflow that triggers on any item being created in a List. It works properly, but I am testing it ...
1
vote
2answers
88 views

Linq To SharePoint entities not counting all items in a document library

I want to count then number of documents in a sharepoint document library in which contains about 100 thousand items. Using the code below, the exact number of documents are returned: SPList oList = ...
1
vote
0answers
37 views

What is the best approach I can follow to read list items which represent a setting list for our event receivers

I am working on building many event receivers inside my SharePoint 2013 enterprise server. and i created a list to store all the settings and variables that will be used inside the event receivers. ...
1
vote
1answer
284 views

Unable to restore list item from recycle bin Sharepoint 2013

Hello a user deleted a record from a custom list. I went to the recycle bin to restore it but when I try it It shows me with the unexpected error screen and the correlation ID. I'm unable to restore ...
1
vote
1answer
76 views

Workflow not starting on PWA

I have a problem with workflow on PWA. I created a simple workflow that will send e-mail when a task is assigned to a particular person by Project Manager using PWA Schedule page. The problem is that ...
1
vote
0answers
143 views

Update value in custom list that exists on SPHost for the SharePoint Provider hosted App

I have a Provider Hosted App from where I need to update a list item in the SPHost i.e the site where I have added this App. I have written my code in the JavaScript file but when I try executing it, ...
1
vote
0answers
65 views

SharePoint List Create item in Main list & Look up list using Javascript

I want to read an excel file & create items in main list and lookup list. The main list is creating an item, but it's not returning the ID synchronously. I tried Success callbacks & deferred, ...
1
vote
2answers
907 views

How to find the item ID of a list in SharePoint using REST?

At some point in time, I want to update a specific Item in a list. I Know that I have to use the REST call to update a specific item. Below is my URL. http://cloudapps.cctspl.com/sites/...
1
vote
0answers
80 views

Displaying content of field other than text using JavaScript

I'm still struggling with SP.js handling of special fields, i.e, computed, lookup, Boolean, MultiChoice, on the OUTPUT side. When building the CAML I know how to add value type tag to be able to ...
1
vote
1answer
2k views

How ListItem.DeleteObject() works?

I have several Lists in my site. Among them I am trying to find out duplicate values in 3 of the lists, Publisher1, Publisher2, Publisher3. I am searching in the lists and saving the duplicated ...
1
vote
1answer
193 views

Add SPListItem with file

I have a library, that have items and each item has additional File field. I can upload them programmicaly - firsly file is uploaded, then empty item is updated with other info. Example of filled ...
1
vote
0answers
148 views

Target _blank added to anchors in Enhanced rich text column

I have a SP List with an Enhanced rich text column whose purpose is to store HTML content which is then used to create the global navigation. The problem is that target="_blank" is added to every ...
1
vote
0answers
145 views

How to bind taxonomy term set to list column in sharepoint hosted app

I have created a term set in SharePoint. I would like to show items from that term set in one of list columns. How do I bind this term store later manually to list column. This is field of type ...
1
vote
0answers
444 views

Get the current user and perform list ID lookup from result

I need to lookup the current user's login name, then use the result to get the ID of a list item that has a column containing that login name. I'm still brand new to javascript, so the code below ...
1
vote
1answer
400 views

ThreadAbortException on SPWeb.ProcessBatchData

I am trying to update ~2000 list items with SPWeb.ProcessBatchData. After exception on all items at a time, I tried them in small batches like 100 and 200 but after executing first 1 or 2 batches i.e. ...
1
vote
0answers
166 views

Close modal after form have “saved”

Im trying to trigger a page reload after my editform is done. I know that I can create a js function, "presaveitem". But this is called before the item is saved. I need to trigger some custom JS ...
1
vote
1answer
480 views

SPContext.Current.ListItem randomly returns null (custom form)

I have noticed this once pushing the current code to production. following is the code under ddlEnWipeReason_SelectedIndexChanged (inside the update panel): using (SPSite curSite = new SPSite(csURL)) ...
1
vote
1answer
1k views

Choose (select) person or group from sharepoint list column

Is possible to create a column to populate users and select them using AD group. I know we have person or group column which we can type. But I am looking by selecting from the dropdown list. How to ...
1
vote
1answer
828 views

How to check if the workflow can be started on SPListItem?

I have created a custom action for starting the workflow on list item. When user selects the item, an item from ribbon is enabled to start the workflow directly on item. I have created on application ...
1
vote
0answers
77 views

how to add a link in a meta text multiline

I've a document library and inside a column multiline text. I've to set a link to an url. I've tried to set my item with. item["col"] = "<a href='myurl'>link</a>"; Sometime it works ...
1
vote
0answers
52 views

Sharepoint 2010 Adjusting lists limits to recomendations

I have huge list, which has too much fields of same type (e.g., Date and Time fields limit in list is 8, of that type I have way more). If those those limits are exceeded, list item data will be saved ...
1
vote
0answers
71 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
2answers
173 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
1answer
496 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
172 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
0answers
892 views

Object refenrece not set to instance of an object - list template items

This may be a duplicate, because this error is pretty common in every part of sharepoint. However, the search function didn't find anything for my particular problem. To the problem: I have a List ...