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.

0
votes
2answers
17 views

Acknowledge email to external users when item submit on SharePoint list(SP 2010)

We are working on an normal SharePoint(20101) list form and when domain users submit any item on the list with external user name(outside domain), an auto email need to send external user saying as ...
2
votes
1answer
867 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(...
0
votes
1answer
819 views

Why ItemUpdating is calling after ItemAdded event in Sharepoint-2010?

I am developing Sharepoint 2010 application where I have been using SPItemEvent to deal with ItemAdded event. One thing surprised me that ItemUpdating event is calling after ItemAdded event in List. ...
0
votes
1answer
23 views

How can I programatically move an SPListItem from a source list to a destination list (into a specific folder of the list)?

I am pretty new in SharePoint (I am working with SharePoint 2013) and I have the following problem: I have a source list(an SPList) on a source website and I have to move its items to a destination ...
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
3answers
122 views

Unable to get the guid of splistitem with SPQuery

I am trying to get some information from a SPListItem by the following code: SPList list = SPContext.Current.Web.Lists[listName]; SPView spview = list.Views["All Items"]; SPQuery query = new ...
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 ...
0
votes
1answer
53 views

Auto populate column data from one list form to another list form in SharePoint 2013

We had two lists in SharePoint 2013. One list (Report) is for the report and another list (Access) for access. First list "Report" consist of a different column, one column name as "Request access" ...
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
2answers
1k views

Error in setting up custom edit form for a List Item (SharePoint 2013)

We have a list for which we wanted to bind a custom aspx page for editing the list item. we have written the following sample console application to check it. public class Program { public ...
1
vote
1answer
1k 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 ...
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 ...
0
votes
4answers
306 views

SPListItem.Delete() has some issues

I have a list which consist of more than 5600 items. In my application i will search all the items from particular date range by using SPquery. As the result of the SPQuery, the splistitem collection ...
0
votes
2answers
53 views

Auto Populate data from one SP form to another SP form

I've SP 1 form where user's fill Service Area, Secondary Code, Record Series Title fields and when they click Electronic Partial (x) check box another SP 2 form will pop-up and wants the same three ...
0
votes
2answers
481 views

How to get more than 5000 items in list without enabled throttling?

I'm trying to work with large list but every time I do an operation on a list I have an exception because I have more than 5000 items in my list. Microsoft.SharePoint.SPQueryThrottledException If I ...
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
2answers
836 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
1answer
1k views

Create new page when new item added in list using designer workflow

How can one let a workflow 2010 / 2013 create a new page with info from a new list item? To further explain: When a list item is added to my custom list, I want a workflow to create a page with ...
0
votes
1answer
685 views

Get size of a ListItem

I've been recently working a lot of scripting with Powershell 2.0 towards SharePoint 2010, tasked with building various scripts that would for example print some information about 10,000 lists, as a ...
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
1answer
36 views

RangeError JSOM set_item update

I tell you that I have been fighting with this bug a few days ago. He is winning ... On the EditForm I have a grid that points to another sherpoint list. I can add listitems to that other list or edit ...
0
votes
1answer
14 views

List Selection Options Same form - Show TextField

I have a simple ticket form, One of the dropdowns in a column include access. Below is a sample column, Upon selection of Access. I would like a text box to open up in the same form. How Should I ...
2
votes
3answers
3k views

Update attachment of list item using rest api is failing

I am trying to update attachment of list item using REST API. I am getting the below error: {"error":{"code":"-2130575257, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The ...
0
votes
1answer
877 views

How to checkin SPCheckedOutFile

In Powershell i get all checked out file from a library with foreach($f in $lib.CheckedOutFiles){ //I tried to retrieve item with $item = $lib.GetItemById($f.ListItemID)//exception item not ...
0
votes
1answer
18 views

From a given Item in a Sharepoint List, create subitems based on multiple choice column

I would like to create a tracker of projects in Sharepoint. This is for translation projects where each project would need to be translated into 10-30 different languages. I have a list where I can ...
1
vote
1answer
804 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 ...
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 ...
1
vote
2answers
50 views

Add large sharepoint list to sharepoint 2013 site

I have SharePoint list with big number of items (13879 items). I saved it with content, download list template and change GUID in manifest.xml file. after I add it to .cab and renamed to .stp file ...
8
votes
2answers
10k views

How to get attachment URL programmatically From SharePoint list item?

How to get attachment full URL programmatically From SharePoint list item? Explanation: I have adding new item with attachment. Now I have to bind that attachment link to grid. When click on that ...
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 ...
5
votes
2answers
3k views

Converting ListItemCollection to List<t> efficiently

I am getting items from a sharepoint list, like below, and then appending these to a list of the object type. I can't help but feel this is a slow way to populate this list, looping through each list ...
1
vote
2answers
134 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
41 views

Setting a list item ID only works when using the field GUID based value setter

Due to some weird concomitance of odd application requirements and legacy code to maintain, I am currently stuck having to programmatically create some list items on a SharePoint 2016 list and assign ...
0
votes
1answer
29 views

Sharepoint's saved list template doesnt loads all item

I have SharePoint 2013 list with 13897 items in it, I saved it as a template with include contents. Now I am trying to create a new list but it doesn't load all items. and if I open this newly ...
1
vote
1answer
105 views

REST API Item Versions Endpoint

In this question, it appears there is a "/versions" endpoint for the ListItems REST API. /_api/lists/getbytitle('ListName')/Items(#)/versions returns a 404 'Not Found' on our SharePoint 2016 On-...
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 ...
0
votes
2answers
30 views

Folder Name not showing with powershell

I have the following powershell: $list = $ctx.Web.Lists.GetByTitle("Documents") $ctx.Load($list) $ctx.ExecuteQuery() ## View XML $qCommand = @" <View> <Query> <Where><...
1
vote
2answers
618 views

Customize AllItems.aspx

I have a list "Projects". Each ListItem stores which users are working on that project. I have 2 groups within SP - "ProjectManagers" and "ProjectMembers". Now I want to customize AllItems.aspx ...
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
3answers
276 views

SharePoint List - Yes or No Column

I have a requirement with SharePoint List to have to option with Yes or No Column or a choice. If the Choice is NO (Nothing to be done) IF the Choice is Yes (then i need 3 options) like - End of ...
1
vote
1answer
1k views

Refresh parent page after closing list item dialog

I'm trying to refresh the parent page of a list when closing the dialog of a list item. Is there a way to achieve this with javascript somehow? I inspected the button in the DOM and tried to write a ...
0
votes
1answer
30 views

Sp list item access via c# - clarification

This may be a stupid question but I'm trying to understand what this line of code does. I get that it accesses a list item - but for what List? SPContext.Current.ListItem.Properties["TwitterUsernames"...
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 ...
4
votes
3answers
4k views

Add New List Item With Attachment Via Excel VBA

I have users that have a schedule template in Excel (2010). I'm wondering how I can code via Excel VBA to create a new list item and attach the Excel worksheet they are using that contains the ...
3
votes
1answer
1k views

Document Library items not updating via UI or code. System metadata (last modified, modified by, etc.) updating

I am having a strange issue with one of my Document Libraries. It is the document library created by the publishing feature "Documents." Here are the symptomps and what I have done so far. Any help ...
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 ...
2
votes
1answer
5k views

I got this error “An unexpected 'PrimitiveValue' node was found when reading from the JSON reader. ” when updating a choice field using REST API

I am working on sharepoint on-premises 2013. and i have a cusotm list which contain 2 columns of type "Choice", as follow:-- Now i am trying to copy one list item and create a new list item, using ...
0
votes
2answers
71 views

How do I determine a GenericList type?

I'm working on a site, where a web part I'm building takes the name of a custom list type as a property when editing the web part settings. The "List" that this visual web-part is designed to display,...
0
votes
1answer
123 views

How does SPListItem HasUniqueRoleAssignments property is calculated?

Does the value for the property HasUniqueRoleAssignments of SPListItem can be found in the SharePoint DB or is it a calculated property? And if it is calculated - then how?
0
votes
1answer
23 views

Can I enforce only one tick to be selected when adding a new list item

Hi (Sharepoint Virgin here.... [But been programming .NET for years now]) Iv'e just recently had to start doing some Sharepoint based work, and as a result have had to basically throw myself in on a ...