Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

1
vote
1answer
9 views

Content Editor WP or Script Editor WP won't show Content when Saving List as Template

I created a List Template with a Content Editor Web Part in it and I made sure to click the "Include Content" button when I created the template but my list template does not have the Content Editor ...
0
votes
1answer
11 views

SharePoint APP with list and pre-defined list item, error in specifying image URL

I am building a SharePoint hosted App which contains a list and pre-defined list items. When I try to deploy app, I get following error @"Error 1 CorrelationId: ...
0
votes
0answers
9 views

CSOM Publishing page list item properties

I am creating a publishing page using CSOM. When page is created I am setting some list item properties. If I get error in setting the properties, SharePoint still creates a page, I want to delete ...
0
votes
0answers
25 views

Workflow on separate sites

I have two separate sp sites. My aim: When user adding item in SPList on 1-st site - workflow add copy of this item in other SPList on 2-st site. SharePoint 2013. How do it?
0
votes
1answer
29 views

SP07 - How to get SPListItem Author and Last Editor

I want to get author and editor on SP ListItem: With this Page_load Code : SPQuery myQuery = new SPQuery(); myQuery.Query = "<Where><Eq><FieldRef Name='ID'/><Value ...
1
vote
2answers
5k views

Getting an ItemCount with filtering in SP2013 using REST api

I am attempting to return an integer (itemcount) of the items within a SP2013 list. I have done this easily using the stock standard json method. However I have a need of counting the splist items ...
0
votes
0answers
11 views

How to get filter data in sharePoint lookup field

I have a lookup field in List A which get data from list B. list B has one more field YES/NO . so i wrote a CAML Query which gives the filtered data depending on this YES/NO , how can i show my query ...
0
votes
1answer
45 views

Pull Data from SharePoint List using JS and converting it into HTML in the following format?

I was wondering how to use JS in order to pull Data from a SP2013 list convert it into HTML using the following structure below. For example: The List fields are as follows: Title Date Image Body ...
2
votes
1answer
794 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
42 views

How ListItem.DeleteObject() works?

I have several Lists in my site. Among them I am trying to find out duplicate values in 3 of the lists, Publisher1, Publisher2, Publisher3. I am searching in the lists and saving the duplicated ...
1
vote
2answers
2k views

How to get List Item from sharepoint list based on ItemID

Dynamically I am adding RadGrid to the page. I need to retrieve list item from the SharePoint list. Say I have 10000 items in the list using SPQuery, I will get filtered records as 2000 items. Here is ...
0
votes
0answers
15 views

Sharepoint List REST API - How to include original results with lookup data?

I recently constructed an AJAX call to a list within a SharePoint site which used the following REST end point. (Sensitive information stripped.) ...
0
votes
1answer
17 views

SPListItem access to lookup column not work

I have one list definition like this: <ContentType ID="0x01..." Name="CNT_List" Group="List Content" Inherits="TRUE" Version="0"> <FieldRefs> <FieldRef ID="{guid}" ...
0
votes
2answers
39 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
42 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
39 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
40 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
40 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). ...
0
votes
1answer
51 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
40 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
50 views

SPListItem dont Add new Item

class Vote { public static void DoneVote(DataTable table) { string siteUrl = "..."; try { using (SPSite ...
0
votes
0answers
32 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
66 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
88 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 ...
8
votes
4answers
46k 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
47 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
20 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
182 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
33 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
156 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
44 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
42 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
37 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
48 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
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
79 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
12 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
796 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
87 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
126 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
88 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 ...