Questions tagged [splistitem]

Representation of a list item within the SharePoint API.

Filter by
Sorted by
Tagged with
2
votes
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 ...
0
votes
1answer
857 views

SPListItemCollection to Dictionary<string, SPListItem>

Rather than repeatedly query a SharePoint list for information I need, I wanted to create a dictionary from an SPListItemCollection (where the dictionary key is the "Title" value of each SPListItem, ...
1
vote
2answers
2k 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/...
0
votes
1answer
1k 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
1answer
1k 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 ...
1
vote
1answer
886 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
2answers
2k 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
2k 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

Can a ListItem's DisplayForm be accessed using query parameters on an arbitrary column?

I'll preface this question by saying I am very much a novice when it comes to SharePoint, so apologies in advance if I use incorrect terminology. I am trying to find a way to access the "DispForm....
2
votes
0answers
23 views

How to use paging SharePoint lists along with sorting and filtering

I am trying to apply paging in a SharePoint list. Everything works fine with the following query: const queryUrl = `${context.pageContext.web.absoluteUrl}` + `/_api/web/lists/GetByTitle('...
2
votes
1answer
1k 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(...
1
vote
2answers
34 views

Associating Specific SP List Items with Specific SP Library Documents/Images

I need to create a SP list of certifications from an Excel spreadsheet.  I need to create a SP library to archive existing and new certification documents/images and upload existing document/image to ...
0
votes
1answer
48 views

Batch Update for 16K Items failing

We are trying to copy contents from one column to the other , However we get request digest error after 6K Items. Below is the code $(document).ready(function () { $("#btnSubmit").click(...
0
votes
1answer
443 views

Triggering Power Automate after 14 days from the date when a specific list field is updated in SharePoint

I have a requirement to trigger a power automate workflow after 14 days from when a specific field gets updated in a SharePoint list. Please guide me on this. Thanks
1
vote
1answer
4k views

Delete List Items Using PowerShells with Date Filtering

I've been trying to delete more than 10,000 list items in SharePoint using PowerShell. So far, this is what I've had [System.Reflection.Assembly]::Load("Microsoft.SharePoint, Version=12.0.0.0, ...
0
votes
1answer
1k views

Getting invalid_request - Token type is not allowed. error while accessing Lists and list Items

I am trying to get SharePoint list and its items by REST API. Below is the approach I have done - Create a App in SharePoint. Got the Client ID, Client Secret. Using the below URL I got the access ...
0
votes
0answers
19 views

How to find out the ID of the item in the other variation in SharePoint 2013?

In SP2013, I am using target variations having en as source and fr as another variation. In lists I can push to the fr side, which means for items if they get approved they appear in the french side ...
0
votes
1answer
125 views

Sharepoint list last modified date

I use this code to get the date of the last edit of a certain list. Now I want to loop through the listitems and identify the item that was changed last, so i.e. that has the same date as the ...
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
1answer
341 views

Microsoft Graph Change contentType of uploaded file and filter

I have a VBA macro I'm using to interface with the graphAPI to upload a ton of files to SharePoint Online. That's working fine. The issue is changing the contentTypes after the fact. I'm using the ...
0
votes
0answers
30 views

Creating a sequential number on a SP online list

I thought this would a fairly straight forward problem to solve. My client needs a unique identify number for a list item and it has to be seven digits long and sequential. I thought there would be a ...
3
votes
2answers
2k 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-...
2
votes
1answer
92 views

Break inheritance SharePoint list item using JavaScript

below is my script to break inheritance of a list item in SharePoint. I am facing the following issue. I have a form, where users submits request through it. All users are in a group called Site ...
1
vote
0answers
124 views

Find list item URL from the local file path C#

I have a local folder that is linked with a document collection in SharePoint. When I modify/add/remove files in this folder and its' sub-folders, it all syncs up with SharePoint. I need to determine ...
0
votes
1answer
127 views

Spview listview item count shows wrong?

We got a list and listview to group our items. But sometimes the total count is showing wrong number. I added sample picture to explain it. In this picture, Type is Form and it says there is one file ...
1
vote
2answers
175 views

SPfx Show More button with a different approach?

My Approach is default 6 items, using api query of the $top=6 If a button is pressed, clear screen, get all data using qpi query without $top6 Algorithm: Define a function to loadNews(boolean=...
0
votes
1answer
409 views

PNP Apply-ProvisioningTemplate - SharePoint List's field is skipped if of different type

I am currently using Azure Build and Release Pipelines to automate deployment to a testing environment. A PowerShell script is used to re-apply a template.xml file for the sites lists and libraries ...
0
votes
2answers
400 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 ...
1
vote
0answers
311 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 ...
7
votes
2answers
38k views

Getting an ItemCount with filtering in SP2013 using REST api

I am attempting to return an integer (itemcount) of the items within a SP2013 list. I have done this easily using the stock standard json method. However I have a need of counting the splist items ...
0
votes
2answers
164 views

Chrome and IE shows "Date();" differently

I was testing my new SharePoint list. One of my list item entries is based on Date();. When I enter the data into Chrome, it has the "GMT-0500 (Eastern Standard Time)" and in IE, the GMT is not ...
0
votes
0answers
47 views

Canceling Modal Dialog, not able to open the Dialog box again

I have a modal Dialog Box confirmation and it works fine if I click Ok. However, when I click cancel (lets say a user changes their mind) and decides a couple minutes later to activate the modal, ...
0
votes
1answer
209 views

How to fix Microsoft Bing API Maps error

I am trying to use the BING Map API but I'm getting stuck. My longitudes and latitudes are stored in a SharePoint list. I get the following error but not sure why Uncaught TypeError: Cannot read ...
0
votes
2answers
1k views

Filter out empty 'multiple lines of text' column(s) in list view. SP 2013

I need to filter out items that have empty 'multiple lines of text' columns in my list view. Traditional filter methods do not work. See images below. Please help!
0
votes
2answers
1k views

Lookup Column in sharepoint with free text (No dropdown)

I have a free text of employee number in task form (Linked to form), when employee number is entered, I want to auto populate name and employee department. I can have source data in excel or separate ...
0
votes
0answers
488 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 ...
9
votes
3answers
11k 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 ...
1
vote
2answers
211 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 ...
2
votes
2answers
244 views

Column validation for past dates

Looking at implementing column or list validation for a date field to stop them from entering past dates The validation should do the following Validate only there is a value in the column Validate ...
0
votes
1answer
51 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 ...
0
votes
1answer
832 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
72 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
69 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
209 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 ...
0
votes
1answer
551 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
4answers
343 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
211 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
1k 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
1answer
2k 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
72 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 ...

1
2 3 4 5
11