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
0answers
18 views

List column loses its values

I have a text column with email 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 ...
1
vote
0answers
28 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 ...
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
2answers
816 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
664 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
15 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
32 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
12 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
828 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
16 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
795 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
13 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 ...
2
votes
1answer
858 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
815 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. ...
1
vote
2answers
49 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
49 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
129 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
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
2answers
34 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
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 ...
1
vote
1answer
63 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-...
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 ...
1
vote
0answers
24 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
28 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
613 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
207 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
26 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
4k 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
63 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
115 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 ...
0
votes
1answer
37 views

When adding item to List, I get error Invalid data has been used to update the list item. The field you are trying to update may be read only

I'm using Client Object Model to update a list on SharePoint. The list is very simple, it only has 3 columns ([Title], [Author], [Year Published]) [Title] is the standard column added by default, [...
0
votes
1answer
198 views

New option could not be placed in ECB menu using SPFX after project deployed and add-in is installed on the site!

I have created one spfx project to place the new option(custom option) in the Edit Control Block(ECB) menu for modern SharePoint site CustomList and it also works fine when i'm testing it on the ...
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....
4
votes
2answers
28k views

REST to get list item by Id

I am always comfortable using JSOM, and I have used less of REST calls to access lists and its Items. But now I have a requirement to use only REST to get item by its ID. Is there any code snippet ...
1
vote
1answer
72 views

What is the client side equivalent of SPAttachmentCollection.Recycle method

In server side object model, we have Recycle method to send the deleted list item attachment to the recycle bin. With this method, users can always restore deleted attachment from the recycle bin. ...
0
votes
1answer
43 views

SP List dropping date format

I have a sharepoint list that has a timestamp in one of the columns. I'm adding the timestap via MS Flow. I need the format to be yyyy-MM-ddThh:mm:ssZ (so i can compare later in a REST call) but ...
1
vote
0answers
67 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....
0
votes
2answers
54 views

How do you calculate days between dates in SharePoint 2016 list without adding 1, Including the original date, and keeping the blanks?

I have a form that a user is filling out by using SharePoint Columns. There are a varied amount of dates that they get to choose from. The form will take a start date and an end date and count the ...