Representation of a list item within the SharePoint API.

learn more… | top users | synonyms

1
vote
2answers
33 views

Find list element when page is loaded

I'm trying to get an element once page has been loaded. However when I put the code in window.onload = function () { my code }; it's not working, without window.onloadit get's the element. here's my ...
1
vote
2answers
27 views

How to update List item with Managed Metadata column using REST or JSOM

How can i update List item with Managed Metadata column using REST or JSOM? Any good sample or suggestion will be appriciated....
0
votes
1answer
17 views

Get workflow associated list items

I have one requirement to get all the list items which has associated with a particular workflow in SharePoint 2013. Like, I have a designer 2013 workflow with name "Test Workflow" which is added in a ...
2
votes
1answer
825 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
26 views

Retrieve List Item Value From Version History Using Powershell

The scenario is I want to retrieve column values(Item Value) of the list from version history and update only single column of item post. Currently, I am not able to retrieve item object values but I ...
2
votes
3answers
5k 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. ...
3
votes
1answer
1k views

Add New List Item With Attachment Via Excel VBA

I have users that have a schedule template in Excel (2010). I'm wondering how I can code via Excel VBA to create a new list item and attach the Excel worksheet they are using that contains the ...
0
votes
0answers
34 views

How to use “visual studio” to automatically create item number?

I need an item number in the following format: PJ-160101-01 PJ is static 160 101 is the date, -01 is autoincrementing number, I want to have it counting from 01 every day. Examples: The ...
0
votes
2answers
99 views

How to automatically create item number?

Without programming, I need an item number in the following format: AA-160101-01 AA is static 160 101 is the date, -01 is autoincrementing number, I want to have it counting from 01 every day. ...
1
vote
1answer
796 views

SPListItem.Update Not working

So I have this really simple function which updates a couple of fields on two different lists (one is a document library) The thing is on the document library does not updates any of the fields I need ...
3
votes
1answer
57 views

Cannot set list item value

I want to set a ListItem value with PowerShell (SP2013). As the following screenshot shows, I (the current user) have Full Control for this list. However, I cannot edit any field value. The value ...
2
votes
0answers
49 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 ...
2
votes
1answer
200 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 myListItem.get_roleAssignments().getByPrincipal(...
6
votes
1answer
6k views

How to get attachment URL programmatically From SharePoint list item?

How to get attachment full URL programmatically From SharePoint list item? Explanation: I have adding new item with attachment. Now I have to bind that attachment link to grid. When click on that ...
0
votes
2answers
56 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
55 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
77 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
27 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 ...
5
votes
2answers
100 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?
3
votes
1answer
420 views

Update readonly field using REST API

I am trying to update a list item using Rest API. Following is my code. It works and it updates all fields except "RichMessage" which is a Note field with RichText="TRUE" and readonly. I have tested ...
1
vote
3answers
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 ...
1
vote
0answers
29 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 ...
0
votes
1answer
73 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 ...
3
votes
1answer
40 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
3k views

REST to get list item by Id

I am always comfortable using JSOM, and I have used less of REST calls to access lists and its Items. But now I have a requirement to use only REST to get item by its ID. Is there any code snippet ...
0
votes
0answers
15 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
40 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
19 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
42 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'&...
1
vote
2answers
7k 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
19 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
61 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
1answer
63 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
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
18 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
41 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
81 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
67 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
89 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
47 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
64 views

SPListItem dont Add new Item

class Vote { public static void DoneVote(DataTable table) { string siteUrl = "..."; try { using (SPSite ...
0
votes
0answers
39 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
99 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?