Questions tagged [splistitem]
Representation of a list item within the SharePoint API.
131
questions with no upvoted or accepted answers
4
votes
0
answers
644
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
0
answers
54
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
0
answers
781
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
0
answers
658
views
Is there any way that I can use Application Customizer extension in whole site and only for one page?
I have created a Application Customizer extension of permission for single page URL. Is there any way that I can use this extension in whole site?. If yes, how to do it?
2
votes
0
answers
305
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
1
answer
43
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....
2
votes
1
answer
129
views
update people and group list item by name and dont have user id/user name/email id Sharepoint 2013 by providing name in JSOM
In my current scenario am having an excel with all the metadata and person name. This details I have to upload to Sharepoint 2013 list using JSOM.
Am not sure how to handle people and group column ...
2
votes
1
answer
284
views
SPListItem : CopyFieldMask , Value does not fall within the expected range C#
When I am trying to update a list item, I get an error
CopyFieldMask , Value does not fall within the expected range
My code is as follows:
SPQuery oquery=new SPQuery();
oquery.Query= "<...
2
votes
0
answers
226
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
0
answers
108
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
0
answers
343
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
0
answers
152
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
0
answers
459
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 ...
2
votes
1
answer
394
views
How to import one single row of data from excel to one list item in a SharePoint 2010 list?
I have a problem where we want users to attach a file to a new item and the SharePoint list will automatically read on row or column of data (maybe 20 cells-worth of data) and populate some additional ...
2
votes
0
answers
309
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
0
answers
397
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
0
answers
485
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 ...
2
votes
1
answer
668
views
Rest api - Query Multiple Sharepoint lists for a listitem with a given property value
I have 3 sharepoint lists with the same columns. I need to fetch the list items with a particular property value, eg. CustomName property with value 'Test' from all the 3 lists. Instead of looping ...
1
vote
0
answers
45
views
Data mismatch while making a list call to get data from SP list
I'm trying to get Data from SP List through rest API from SPFX, I've checked by running that rest API directly in the browser where it shows correct data but while making a call from SPFX that rest ...
1
vote
0
answers
450
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 ...
1
vote
0
answers
456
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
0
answers
371
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
0
answers
47
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
0
answers
127
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
2
answers
538
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 ...
1
vote
1
answer
445
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....
1
vote
0
answers
60
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
1
answer
1k
views
Create a list item and specify its GUID
I'm aware that (integer) ID can't be specified for a list item when it gets created (and why), but it seems like there should be a way for a client to specify the GUID for an item it is creating. This ...
1
vote
2
answers
288
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
2
answers
120
views
Linq To SharePoint entities not counting all items in a document library
I want to count then number of documents in a sharepoint document library in which contains about 100 thousand items. Using the code below, the exact number of documents are returned:
SPList oList = ...
1
vote
0
answers
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
1
answer
611
views
Unable to restore list item from recycle bin Sharepoint 2013
Hello a user deleted a record from a custom list. I went to the recycle bin to restore it but when I try it It shows me with the unexpected error screen and the correlation ID. I'm unable to restore ...
1
vote
1
answer
125
views
Workflow not starting on PWA
I have a problem with workflow on PWA.
I created a simple workflow that will send e-mail when a task is assigned to a particular person by Project Manager using PWA Schedule page. The problem is that ...
1
vote
0
answers
217
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
0
answers
67
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
2
answers
3k
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
0
answers
99
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
1
answer
292
views
Add SPListItem with file
I have a library, that have items and each item has additional File field.
I can upload them programmicaly - firsly file is uploaded, then empty item is updated with other info.
Example of filled ...
1
vote
0
answers
237
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
0
answers
159
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
0
answers
453
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
1
answer
533
views
ThreadAbortException on SPWeb.ProcessBatchData
I am trying to update ~2000 list items with SPWeb.ProcessBatchData.
After exception on all items at a time, I tried them in small batches like 100 and 200 but after executing first 1 or 2 batches i.e. ...
1
vote
0
answers
170
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
1
answer
549
views
SPContext.Current.ListItem randomly returns null (custom form)
I have noticed this once pushing the current code to production. following is the code under ddlEnWipeReason_SelectedIndexChanged (inside the update panel):
using (SPSite curSite = new SPSite(csURL))
...
1
vote
1
answer
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 ...
1
vote
1
answer
903
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 ...
1
vote
0
answers
81
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
0
answers
53
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
0
answers
80
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
2
answers
216
views
Sharepoint list items getting auto modified
Sharepoint list items getting auto modified. All the lists seems modified by a single user. But when checked with the user, he hasn't accessed this list at all. And the modified time stamps are all ...