Stack Exchange Network

Stack Exchange network consists of 174 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
26 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
2answers
25 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
25 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
22 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
23 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
27 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
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
89 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 ...
0
votes
0answers
36 views

Creating a SharePoint designer list workflow with an item modification and trigger multiple times when the item is modified

We are creating a designer workflow in SharePoint 2013 with workflow trigger for when an item modified in list. We have a custom list with two columns ("start date& Expiry Date") and these two ...
0
votes
0answers
21 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
21 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
2k 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
48 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
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
100 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
144 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
1answer
29 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
0answers
32 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....
1
vote
1answer
57 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
37 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
56 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
0answers
26 views

My average on SharePoint List column in 2016 online is not returning any value. Why?

Currently, I have a few calculated columns that add the total numbers of days between dates. for example: Column 1: Start Date: 4/6/18 , Start Date: 4/11/18, Start Date: 4/1/18 Column 2: End Date: ...
0
votes
2answers
46 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 ...
0
votes
0answers
46 views

Escaping a Rich Text Field in a SharePoint List

Here is a segment of my PnPProvisioningTemplate ...... <pnp:DataRows xmlns:pnp="http://schemas.dev.office.com/PnP/2018/01/ProvisioningSchema"> <pnp:DataRow> <...
0
votes
1answer
287 views

How to properly use GridView to create items on SharePoint Lists?

I'm trying to transfer values from a GridView web-control I'm using in a webpart into a SharePoint list, but whenever I click "save" the data isn't being kicked into the list. All that happens is a ...
0
votes
1answer
36 views

Store the Attachment in the File folder and remove from the SharePoint List Item?

I have a requirement that when an item is added Store the Attachment in the File folder Remove the Attachment from the SharePoint List Item How do I achieve this?
0
votes
1answer
226 views

How to retrieve Attachment's FileName with CSOM

I need to check if attachment already exists: ListItem item = list.GetItemById(_id); context.Load(item, l => l.AttachmentFiles); context.ExecuteQuery(); if (item.AttachmentFiles.Any(x => x....
0
votes
1answer
131 views

Getting LookupField with SharePoint Online Management Shell

I am trying to get the user Email through a LookUpField. When I try to "Write-Host the Email", the screen is blank. There is no errors and nothing. What is wrong with my code? Any help is much ...
3
votes
2answers
275 views

Limit selection on Radio Button in Custom SharePoint List

In SharePoint List, I have create Check boxes with three option in Choice Column. Now, How to disable two options when one is selected in new form? I tried by using this Link, but no use.
1
vote
1answer
162 views

SP Services - Limit, display top 10 from list (Latest IDs)

The current script creates a table showing all Items from the list. What I want to achieve is to: Limit the items to ONLY show latest top 10 IDs in the table. e.g. If I have a list of 21 Items, it ...
1
vote
2answers
208 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 ...
0
votes
1answer
72 views

What is splistitem.listitems property

What use of splistitem.listitems property? Please let me know I might find any article for the same.
0
votes
2answers
81 views

Adding list item in SharePoint List gives an error on date format

i have an issue with all my lists in SharePoint, giving error when adding an item to list "You must specify a valid date within the range of 1/1/1900 and 12/31/8900." I have checked regional settings ...
4
votes
1answer
327 views

Fetching and displaying more than 5000 list items

I am aware of the list items threshold of 5000 items. But I need to display more than 5000 items on a SharePoint Hosted Addin and on a .net website. How can I overcome this constraint? Also, I do ...
1
vote
1answer
140 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....
2
votes
2answers
35 views

Several users add SPListItem

Will there be any problems (e.g. save conflicts) if several users at the same time will try to programmatically add SPListItem to SPList? public override void Add(Contract contract) { var ...
3
votes
1answer
189 views

How to copy data from one column to another column(separate list) while adding the item using EventReceiver?

I have created a sharepoint list named "test" in that I have a column URL as multiline text.While inserting data into that column need to update the same value in another list. I tried by adding event ...
0
votes
1answer
29 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"...
1
vote
0answers
45 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 ...
2
votes
1answer
50 views

SP13 - How can i see/edit the settings(Target Label Behavior) [closed]

My issue is: Where i approve changed data on listitem in source List, data in target listItem has been changed. -References- I can to see the setting on source in existing variation site:
3
votes
0answers
38 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 ...
2
votes
1answer
34 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....
1
vote
1answer
107 views

Overwriting item in list instead of creating new one

It's activated on button click event. Problem is that it's not creating another item in the list, but it is overwriting the current item, so there is always 1 item, instead of creating item on each ...
5
votes
3answers
287 views

item[ID] doesn't return item[ID]

I have a peculiar issue, following is the code : var item = list.Items[ID]; The problem is that the returned item is actually the Items[ID-11]. I can verify that from dispitem.aspx?id=[ID] Since ...
1
vote
1answer
324 views

How can I fetch current or latest version number of a list item using PowerShell scripting

I want to fetch latest or current version of an item in a document library. How can I achieve this using PowerShell Scripting? Is $version.VersionLabel value of version number? But I don't want to ...
2
votes
2answers
995 views

Item level permission in SharePoint 2013

I have a list where I want give edit permissions at item level. I am aware of the item level permissions offered by SharePoint. What I am looking for is that I should be able to assign editing ...
0
votes
0answers
332 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
41 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; ...
3
votes
2answers
412 views

How to change the list name using c#?

I have created a SharePoint list. I have a situation to change the list name using c#. please suggest any idea.
0
votes
1answer
558 views

How to change list item date time format type using c#

I am making a sharepoint web appplication. when I show the data from sharepoint lists, I want to change DateTime format type. For example, "Created" item showed like this now [2017-06-15 PM 3:23:33] ...