Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

1
vote
0answers
50 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 ...
0
votes
1answer
32 views

Update SP List Item Drop-Down for one item

I have this code that I always use to query and display items, but I need to perform occasional updates as well and tried this code. It wouldn't update or recognize the word update. I tried a number ...
2
votes
1answer
85 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 ...
5
votes
1answer
56 views

How to set calculate column result in another item

I made a list for Event Planning, the columns name are: Row(to change the order) Subject start time duration end time(sum of start and duration) I need to copy each end time to start time ...
0
votes
0answers
15 views

Infopath Email is not working when form is submitted programatically

I have a InfoPath form which sends out a mail. This InfoPath form is on a List. When I manually add a list item, I am getting a mail. No list item is getting created as Submit options in InfoPath is ...
2
votes
0answers
43 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 ...
8
votes
2answers
798 views

Is it possible to create a “Link to a Document” in a Document Library using a CAML Batch Command with UpdateListItems?

I have a Document Library in WSS 3 which has the "Link to a Document" content type enabled, and I want to use a batch command (via lists.asmx updatelistitems) to create a series of links. Here is the ...
0
votes
2answers
62 views

add an SPListItem from a web part

I'm using a sandbox solution. I'm trying to add some items to a list from a button click in my webpart. It seems easy but with sandbox everything becomes difficult. I'm getting an exception when I ...
0
votes
1answer
104 views

Need to remove permission on Sub-Folders for group programmatically

I am struggling to remove subfolders permissions for a specific group. I've been on internet and of all the solutions I keep getting the error Object does not belong to a list Here is my code ...
3
votes
1answer
14k views

How to retrieve all items from a list (with custom fields) by javascript object model

I need to get all my custom fields from my list by Javascript Object Model.. The code I wrote down is this: var items; $(document).ready(function () { $("[name=ItemChildCount]").text("...
1
vote
2answers
135 views

PowerShell script to download images by item field value

I've found this great script that downloads all images and their folders from a given library. I'd like to update it so that it only gets images that have a certain value for the product code. ...
1
vote
1answer
89 views

Identify Whether Document is Published Or not

I have to call SP search Api for documents in document Library applying filter for only bring such documents which are published and having specific content type . Is there any specific property for ...
3
votes
1answer
4k views

loop splistitem in folder in powershell

I'm trying to loop all splistitem in a folder of a library. I can get my library and have folder but i'm not able to get the items inside the folder. When i display the listitem for folder, i've the ...
1
vote
0answers
170 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(...
2
votes
0answers
58 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 ...
0
votes
0answers
43 views

How do I get 2 lists to show next to each other using MVC web- application?

I know how to get one list from SP in my web-application, but I want to display 2 lists that I have in 2 div's. My problem is that Everything disappears when i run them with the code below: var ...
1
vote
2answers
74 views

Trigger an email when list item is updated-without using ItemEventHandlers

I need to send an email to a designated person [ Windows-AD authentication account - john@mycompany.com] whenever there is a change in the list item of my SP 2010 List. I cannot use the event receiver ...
0
votes
0answers
19 views

Restore viewstate while cancelling request

I have a SPItemEventReceiver with custom ItemAdding handler. When any exception occurs (frequently it's just a model validation) it handles this exception in Handle method. Now it looks like this: ...
1
vote
3answers
323 views

JSOM 2013 Get Item from List containing all fields

I'm trying to get a specific list item (by id) using JSOM and want to get all fields in this item. Though, for some of my fields I get the error that I need to request the field (which would be done @ ...
1
vote
0answers
45 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 ...
0
votes
0answers
39 views

Set Doc Set Thumbnail Url?

I would like to change the thumbnail of a Document Set and I'm having trouble figuring out if this is possible. Currently the code below tells me that field is read only... $weburl = "http://web" $...
1
vote
1answer
148 views

List Item Name not populating - PowerShell

I have a PowerShell script that outputs to a CSV file all items from all Lists and all files from all Document Libraries in a Site shown below: function Get-DocInventory([string]$siteUrl) { $web = ...
0
votes
1answer
95 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, ...
0
votes
2answers
110 views

Retreive all Items from All Lists from a site - Powershell

I have a PowerShell script that outputs all documents from all Libraries within a Site (web) scope to a CSV file listed below: function Get-DocInventory([string]$siteUrl) { $site = New-Object ...
1
vote
1answer
103 views

Instantiate SP.FieldUrlValue fails with “Uncaught TypeError”

I am trying to change the values of SP.FieldUrlValue in a list on SharePoint 2013. The goal is to add thumbnail of some images to the image field of my list based on the name of the title field. I ...
2
votes
1answer
116 views

SPListItemVersion determine which fields updated

For out of the box, the version history will only display the updated fields. How can I determine whether a field has been updated for a specific version programmatically? My end goal is to display ...
2
votes
2answers
69 views

Query to a list doesn't work

I want to get the number of comments from the list "Comments" of a blog site. To do that, I have a query with this code: using (SPWeb oWebsite = oSiteCollection.OpenWeb(new Guid(WebId))) ...
1
vote
1answer
36 views

Drop Down Site column has no value in edit form

My list has a drop down Site column. In the view you can see that most of the items has a value for this column. Even when you go to display item form you can see that the field has right value. ...
0
votes
0answers
56 views

Faster way to process 120K List Items in SharePoint 2013?

We have around 120K List Items in a SharePoint 2013 List. Now, we want to introduce an additional column and update the value based on the existing columns. It is a dedicated - SharePoint farm and ...
0
votes
1answer
39 views

Is there a way to tell from the (C#) code-behind when I insert into a Sharepoint List from JavaScript?

I want to respond to the insertion of data into a Sharepoint list (which will be done from the client/JavaScript (*.asxc file) in the code-behind/C#. Is there a way to do that? Can I hook up an "...
1
vote
1answer
79 views

Get SP list items in select tag

I am trying to get list items in select tag but it is not working.I have tried to fix this in many different ways but nothing works. my code: <select id ="listBox" multiple="multiple" style="width:...
0
votes
1answer
1k views

Copy ListItem from one list to an other by ribbon custom buttom

I try to create a new button in the ribbon. When the person select a list item and click on this button this item will be copied to another list. CommandAction=""javascript: var context = SP....
0
votes
1answer
68 views

Unable to add item to my sharepoint list

I try to add an item to my sharepoint list from a custom web part. Is there any mistake in my code? [WebMethod] public static string AjouterDemande() { SPList ...
5
votes
3answers
4k views

Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page

Whenever I try to save or publish or check in the web-interface, I get this error. The test-environment did not have this issue, and I've only added a single web part to the page and tweaked the CSS ...
0
votes
1answer
66 views

CAML query with In operator

I'm trying to use CAML query with In operator since it's easyer to build then Or conditions. Here is my CAML <View Scope="RecursiveAll"> <Query> <Where> <In> <FieldRef ...
1
vote
0answers
178 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
1answer
153 views

JSOM get_url of image null or undefined

I'm trying to get the url from an Image/Hyperlink field in a SP2013 List. My query works until I add in the request for Image data. Unable to get property 'get_url' of undefined or null reference I'...
0
votes
1answer
134 views

Get selected Value from Lookup Dropdown on ItemAdded

I am attempting to grab the text value of a lookup dropdown after an Item is Added. The way I'm currently doing this, gives me the string 23#ADMIN, which is the combined ID and text. I could go the ...
3
votes
2answers
3k views

Help with getting the value of a look up field

Currently, I am using an ajax request to access the list items. The fields that are not lookups come as expected but the lookup fields come across as an ID of the object that corresponds to its ...
1
vote
0answers
126 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 ...
0
votes
0answers
35 views

Get the first question of sharepoint Survey

I want to get first survey question. I tried this code : SPListItemCollection items = listURL.GetItems(sPQuery); SPListItem firstQuestionItem = items[0]; firstFieldSurvey = firstQuestionItem.Title; ...
18
votes
2answers
13k views

SPList.Add() vs SPList.AddItem() SharePoint 2010

Using some test code i found out that SPList.AddItem() executes slight faster then SPList.Add() - does anyone know why is it so ? DateTime start = DateTime.Now; SPList ...
1
vote
2answers
174 views

SharePoint get field value as text

For JSOM we have a great method called get_fieldValuesAsText that returns formatted field value. The same value as user can see it in the list. I am really supprised that I can't find anything like ...
1
vote
2answers
959 views

RegEx to validate and replace invalid file name characters from a custom web part file upload control

Scenario: I have a fileupload control in my custom webpart that attaches the uploaded files to the list item. The attachment code is given below: private void UploadAttachments(Helper ...
0
votes
0answers
30 views

Sharepoint list forms (NewForm.aspx) from 2010 to 2013

We have recently migrated our contents from SharePoint 2010 Foundation server to a new SharePoint 2013 Foundation server.Everything went fine and even the custom list forms(NewForm.aspx,EditForm.aspx) ...
0
votes
1answer
120 views

SSOM Embed Code when inserting list item

Clicking this button in the list's ribbon, I can properly embed HTML so SharePoint doesn't strip anything out. I have some HTML that I need to insert into a list item field via C# code. How do I ...
1
vote
1answer
35 views

SPListItem update conflict

Task: when user updates an item, change synchronously another hidden field of this item. Problem: save conflict occurs AFTER update is called (not on this line). I subscribe on EventReceiver's ...
0
votes
0answers
97 views

CSOM timeout when attaching file to list item

I am attaching files to list items and encounter the following error message: The operation has timed out. Looking at the files that throw this exception, I see that they range in size from ~7MB to ~...
1
vote
1answer
105 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. ...
0
votes
0answers
17 views

SharePoint manipulating content on ListItem insertion

Long story short, I am parsing an XML document and adding items to the Body field of a discussion board. The XML has a <body> element that contains encoded HTML that I am adding to the list ...