Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

1
vote
1answer
34 views

How to always display count of list items on Google Visualization pie chart [closed]

I want to display the count of the specific list items on the Google Visualization Pie Chart. Right now, when I mouse-over on the pie chart I am able view both the percentage and count of the ...
2
votes
1answer
29 views

How can I see what list items are in what folder?

I have some code that shows me all the items (files and folders) in a document library, but everything appears on the same level. How can I see which items sit in which folders? Currently the output ...
0
votes
2answers
16 views

SPListItem Specified argument was out of the range of valid values

Am trying to manually pass list item ID as argument in user defined function as Int32 var type. When the list index assigned to splistitem it raise the specified argument error. While debugging it ...
3
votes
1answer
32 views

Monitoring list item fields for a certain span of time

how to monitor a list item field or document library metadata for a duration of say 20 days whether it was modified or not. (tracking only one field not the entire list item modified date) the ...
1
vote
0answers
27 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
20 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 ...
5
votes
1answer
43 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
5 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
40 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 ...
0
votes
1answer
51 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 ...
1
vote
1answer
80 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 ...
1
vote
0answers
97 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 ...
1
vote
2answers
56 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. ...
2
votes
0answers
51 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 ...
1
vote
2answers
50 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
29 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 ...
0
votes
0answers
14 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
89 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 @ ...
0
votes
0answers
21 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 ...
2
votes
1answer
63 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 ...
0
votes
0answers
29 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" ...
0
votes
1answer
51 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
1answer
63 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
2answers
68 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 ...
2
votes
1answer
55 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 ...
0
votes
1answer
32 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. ...
2
votes
2answers
62 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
76 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 ...
0
votes
0answers
33 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
33 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
72 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" ...
0
votes
1answer
61 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 ...
0
votes
1answer
51 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
101 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
91 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 ...
0
votes
1answer
51 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 ...
1
vote
0answers
66 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
27 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; ...
1
vote
2answers
123 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
374 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
25 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) ...
1
vote
1answer
30 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
1answer
100 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 ...
0
votes
0answers
57 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
73 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
14 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 ...
3
votes
2answers
54 views

Problem with bulk items insert in SPList (works fine for 200 but not if item exceeds )

var itemArray = []; for (var i = 0; i < data.length; i++) { var items = data[i].split(","); downloadID = items[0].trim(); noOfDownloads = items[1]; ...
2
votes
1answer
102 views

CustomSolution Error - Object reference not set to an instance of an object

atm I'm implementing a custom solution in our SP 2010 farm to receive emails on an specific custom list. With the following code it's possible to add one entry, with an email-body contains one line ...
1
vote
2answers
76 views

Update current item [duplicate]

I am trying to update current items, but all items in the list get updated why? public override void ItemAdding(SPItemEventProperties properties) { using (SPWeb web = ...
0
votes
0answers
15 views

ItemAdding Event check for manually unpublished [duplicate]

I am uploading a document to a SharePoint library, (drafts lists). When I publish the document it gets added to the startpage of the document. When I then what do Unpublish the document the ...