Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

0
votes
2answers
25 views

Lookup list with dependencies/permissions

Below is a drawing of a scenarium I want to create in SP2013. My question is wether this is possible OTTB, or possible at all. The main concern is, how possible is it to make drop-down depend on each ...
0
votes
1answer
24 views

How synchronization 2 SPList with workflow?

User add item to SPList 'one'. How do we add it item in SPList 'two with workflow? NB: SPList on different servers
0
votes
2answers
36 views

List approval flow

I have a SharePoint list. When we fill out the details there are two things which we ask Department Review and Approval Assign To Once we save the form, the Department Review and Approval should ...
1
vote
2answers
37 views

Remove Cancel button of New Item form from SP Modal Dialog

Using below code I am loading share point new list item form in the SP Modal Dialog. Now I want to hide Cancel button of that form. How can I do that ? <script type="text/javascript"> var ...
3
votes
2answers
36 views

List item field hidden from Edit form

I have a content-type consisting of two columns: Title and Description. Title is required and a single line of text Description is optional and consists of more lines of text (Rich text editor). ...
2
votes
1answer
782 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 ...
0
votes
1answer
37 views

How to set Date Field on insert form to null if date is not required

I am trying to set date field to allow null values on my insert form but every method I have tried comes back with " cannot insert null values". I simply want to allow users the option to insert a ...
0
votes
1answer
34 views

Try get attachments to SPList

I tried using this solution with the following code: using (SPWeb web = site.OpenWeb()) { SPList list = web.Lists[ListName]; items = list.GetItems(); table = ...
0
votes
2answers
41 views

SPListItem dont Add new Item

class Vote { public static void DoneVote(DataTable table) { string siteUrl = "..."; try { using (SPSite ...
0
votes
0answers
30 views

Custom list item delete? (the list type is of contact )

I have a custom list of type contact on SharePoint 2010, I'm trying to remove a contact from the list but I'm not able to do, it gives me error: User cannot be deleted. Message: Object ...
0
votes
2answers
53 views

How take url Attachments for all items in list

I have an SPList. How I can get attachment URLs for every item in the list?
1
vote
3answers
4k 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. ...
2
votes
1answer
62 views

How to set ModerationInformation.Status Values in Powershell?

I have saved $item.ModerationInformation.Status information in HashTable $DeletedItemsIDs and recycled list items. After That I restored items from recycle bin and assign saved ModerationStatus ...
7
votes
4answers
45k views

How to set ListItem Lookup Field value

How do I set a ListItem's Lookup field using code? SPFile file = list.RootFolder.Files.Add(destUrl, iStream, true); SPListItem item = file.Item; item["DocumentID"] = DocID.ToString(); ...
1
vote
1answer
43 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 ...
0
votes
1answer
28 views

Event Handler - Unauthorised access error

So, on my ItemAdded receiver, I am looking to update a list item field. Now, if the user adding the item to the list, has sufficient permissions/privileges, this all runs smoothly. If not, the code ...
0
votes
0answers
17 views

Event Receiver not firing because of content of “Mulitple lines of text” field

I have a list item for which my Item-Updated Event Receiver won't fire. It has one multi-line-text column, which contains a text with following properties: type: Enhanced rich text (Rich text ...
4
votes
2answers
170 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
32 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
10 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
100 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
40 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
35 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
32 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
36 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
41 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
29 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
72 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
54 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
11 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
792 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
61 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
73 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
13k 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
108 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
84 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
144 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
56 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
35 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
58 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
15 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
203 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
38 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
36 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
103 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
81 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
97 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 ...