Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

4
votes
2answers
125 views

People or Group field returning semicolon hash then Name

In querying the properties of a list item, I found that returning the value of a people or group field that the value would be returned in the form 1;#George Grainger Using the code: ...
0
votes
1answer
20 views

Is a ListItem GUID List dependent?

Picture the scenario: ListA, ListB, ListC, ListR In ListR, I have a field (fGUID) to store the GUID of an Item of one of the A,B,C Lists. Do I need to store the List[A,B,C].GUID to locate the ...
0
votes
0answers
15 views

Extra Column in Unbound Gridview ListItem [on hold]

I'm using an unbound gridview with 3 rows header with 6 columns. Not sure why am getting an extra column on left of and it moves the entire row item on the left. Any idea? TIA? <columns> ...
0
votes
0answers
9 views

How to show data from list web part in page as content editor?

I have created the page in SharePoint 2013 having web parts. I have added list web part to this page but when mouse hover to that list web part data its showing some background and its clearly showing ...
1
vote
1answer
17 views

Programmatically Get Version Changes for List Item in SharePoint 2013

Is it possible to get only the changes (changed field values) from every version of a List Item in SP 2013? If so, can anyone please explain it in detail with code?
1
vote
1answer
704 views

Document Library items not updating via UI or code. System metadata (last modified, modified by, etc.) updating

I am having a strange issue with one of my Document Libraries. It is the document library created by the publishing feature "Documents." Here are the symptomps and what I have done so far. Any help ...
1
vote
1answer
35 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
32 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
18 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
29 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
2answers
1k views

Proper way to evaluate/get status of boolean field when looping through SP List with code

What is the best way to do this when looping a list? I have tried to evaluate it with something like this but it wont let me evaluate bool as an "if" condition if (item["ShowTitle"] == true) //do ...
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 ...
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 ...
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
42 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
781 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
58 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
53 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
12k 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 () { ...
1
vote
2answers
58 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
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 ...
3
votes
1answer
3k 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
104 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 ...
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 ...
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 ...
1
vote
2answers
51 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
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
95 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 ...
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" ...
1
vote
1answer
65 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
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, ...
0
votes
2answers
69 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
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 ...
2
votes
1answer
57 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
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))) ...
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. ...
0
votes
0answers
34 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
2answers
2k views

Error:Access denied. You do not have permission to perform this action or access this resource

I am retrieving items from SP lists. But when I try to deploy my solution through VS 2013 it says Access denied. You do not have permission to perform this action or access this resource. ...
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
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 = ...
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 ...
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
52 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
105 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
94 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 ...