Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [splistitem]

Representation of a list item within the SharePoint API.

4
votes
0answers
441 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
41 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
416 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 '...
2
votes
0answers
85 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
0answers
95 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
297 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
131 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
0answers
281 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
363 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
473 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 ...
1
vote
0answers
32 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
34 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
69 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
0answers
49 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
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
0answers
137 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
64 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
0answers
75 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
0answers
144 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
140 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
437 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
0answers
152 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
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
0answers
171 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
856 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 ...
1
vote
0answers
161 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
442 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 on ...
1
vote
0answers
812 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
392 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
149 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
0answers
281 views

SPListItem.Tasks always empty

I have a custom sharepoint (2007) list (named testlist) on which I attached a test workflow (built with sharepoint designer 2007 and named testwf), which only task defined in the 'Actions' section at '...
1
vote
0answers
157 views

SPListItem: get associated eml file

I have a discussion board set up with an email drop folder. Once an .eml file is copied into the drop folder, it would disappear and the new discussion/message would be added to my discussion board. ...
1
vote
0answers
722 views

Problem with Refresh button on External data column

I'm struggling with refreshing items on list with external data. So far I have been able to make the refresh button work, but only when I add items to list in a standard way (via browser). When I add ...
0
votes
0answers
12 views

ListItem.BreakRoleInheritance(true, false) Throws WebException: The remote server returned an error: (403) Forbidden. Retrying works sometime

public bool BreakListItemRoleInheritance(string siteUrl, Guid listId, int itemId, bool copyRoleAssignments) { try { var clientContext = Admin....
0
votes
0answers
21 views

Multi select List column loses its values

I have a text column with some validation This column is bound to a list/content type. One of the other columns in the list is a multi select lookup column. The values for the multi select column ...
0
votes
0answers
17 views

SharePoint Group Cannot Be Found error when retrieving SPListItem

Error log captured the error Group Cannot Be Found at this part of the code. private void GetTreeView(PRDConfig.System SelectedSystem = PRDConfig.System.PRD) { try { using (...
0
votes
0answers
14 views

iTextSharp PDFReader not loading the pdf from binary byte

I have created an EvevtReceiver with item was added and item was updated on document library. I am trying to upload a pdf into document library and save the modifieddate of pdf into a column called ...
0
votes
0answers
54 views

Export SharePoint 2013 list big data to Excel

I have a SharePoint list with 13879 items, so when I am trying to export the list to Excel, data doesn't export. It is blank sheet and looks like this. (where column1, column2... are SharePoint list ...
0
votes
0answers
23 views

Workflow Column renders 'undefined' with attr selector

I'm using SPServices to get list items. I'm having difficulty getting the value for my workflow status column as it keeps coming back undefined. I am using the internal name so not sure why it would ...
0
votes
0answers
35 views

Error while adding list item in SharePoint 2013

I have timer job which creates new list item in custom list and then add attachment to the list item. It works perfectly fine but it threw one error once and there is no exception message in logging ...
0
votes
0answers
34 views

SharePoint access to path denied only in production

I followed [this][1] to convert a SharePoint List Item to word (and then word to PDF). I am using a dotx template file from a Document Library to create a word file and save it in the same doc library....
0
votes
0answers
364 views

Add multiple list user custom actions using PowerShell?

I would like to add 2 custom actions to a SharePoint 2010 custom list. I'm adding the first custom action to the ribbon and it works perfectly. Then, I'm trying to add the second one using the same ...
0
votes
0answers
45 views

SP13 - How to get source ListItem from variation ListItem with C#

I have a case where need to get source ListItem by variation ListItem with C#? How to do this? var variationList = myWeb.Lists["variationListName"]; var variationListItems = variationList.Items; ...
0
votes
0answers
172 views

Sharepoint 2013 - PS to Update Document Library Choice list default value

I have a library named 'FED'. The library has been in existence for a couple of years. There are some modification needed and this is where it changes: The 'FED' library has had a new choice field '...
0
votes
0answers
77 views

How do I get 2 lists to show next to each other using MVC web- application?

I know how to get one list from SP in my web-application, but I want to display 2 lists that I have in 2 div's. My problem is that Everything disappears when i run them with the code below: var ...
0
votes
0answers
203 views

Faster way to process 120K List Items in SharePoint 2013?

We have around 120K List Items in a SharePoint 2013 List. Now, we want to introduce an additional column and update the value based on the existing columns. It is a dedicated - SharePoint farm and ...
0
votes
0answers
34 views

How to avoid character limit when uploading document via VB app?

We have an in-house application that, among other things, generates an Excel spreadsheet and then uploads it to a document library on a SharePoint 2013 site. I sent the developer the UNC path to the ...