Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

0
votes
2answers
47 views

What are the best practices to get all items from SPList

What is the best practice way to get all items from SPList(with query or without) This is my ways : static void Main(string[] args) { try { using (SPSite mySite = ...
1
vote
4answers
54 views

Get SPListItem ItemsData

I have the list of items in object SPListItem item. Is it possible to extract certain data from the ListItems property? The reason I want to do that is because I have a FieldName "AssignedTo" which ...
0
votes
1answer
24 views

set column value as today's date based on another column value

Can someone help me with the below case? I have a list with two columns, Status column with values "resolved and "work in progress" and Resolved Date column. Here is the condition, if Status = "...
0
votes
1answer
53 views

how to set the checkbox(mark task complete) option in task list?

I have task list but I didn't find the checkbox (mark task complete) option in my task list. Thanks in adavance
2
votes
1answer
23 views

How to store IP Address and very large int account numbers in list? What types are best

I'm making a list and need to store IP Addresses and Account Numbers. Basically the text or single line of text variable looks best at the moment however I am wondering if anyone else knows a better ...
4
votes
2answers
96 views

How would I get the Fields which are enabled and the position from left

In my SharePoint list, I have modified the view like this. I want to get the 'Display' value and 'Position from Left' value for the fields. Is is possible with CSOM or another way?
1
vote
0answers
28 views

Displaying content of field other than text using JavaScript

I'm still struggling with SP.js handling of special fields, i.e, computed, lookup, Boolean, MultiChoice, on the OUTPUT side. When building the CAML I know how to add value type tag to be able to ...
3
votes
1answer
33 views

JSOM bulk SP.ListItem creation: get created Ids

I'm using this approach to bulk SP.ListItem creation: var ctx = SP.ClientContext.get_current(); var oList = ctx.get_web().get_lists().getByTitle('listTitle'); myObj.forEach(function(d,i) { var ...
0
votes
1answer
56 views

How to get more than 5000 items in list without enabled throttling?

I'm trying to work with large list but every time I do an operation on a list I have an exception because I have more than 5000 items in my list. Microsoft.SharePoint.SPQueryThrottledException If I ...
0
votes
0answers
13 views

SPUtility.CreateNewDiscussionReply issue in multilingual site Discussion Board reply adding

I have a strange problem. I have multilinugual site. Both is having 2 visual web parts for custom developed discussion board. One is for english,one is for arabic. Only difference is UI. I have a ...
0
votes
1answer
31 views

Get size of a ListItem

I've been recently working a lot of scripting with Powershell 2.0 towards SharePoint 2010, tasked with building various scripts that would for example print some information about 10,000 lists, as a ...
2
votes
1answer
16 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
15 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: 39056be2-5dd1-4c51-ac43-...
0
votes
0answers
15 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
27 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
35 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 Type='Text'&...
0
votes
1answer
56 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 ...
0
votes
0answers
17 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
56 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 ...
0
votes
0answers
16 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.) (site)/_api/web/lists/getbytitle('orgList')/items?$...
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}" Name="...
0
votes
2answers
40 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
43 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
53 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
59 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
68 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
45 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 = items....
0
votes
2answers
56 views

SPListItem dont Add new Item

class Vote { public static void DoneVote(DataTable table) { string siteUrl = "..."; try { using (SPSite ...
0
votes
0answers
33 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
84 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?
2
votes
1answer
131 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 ...
1
vote
1answer
53 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
32 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
29 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
189 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: properties....
0
votes
1answer
34 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
12 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
251 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
47 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
36 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
69 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
40 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
56 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
33 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
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
16 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
45 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
105 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
91 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 ...