The SharePoint client object model (CSOM) is used to retrieve, update, and manage data in SharePoint 2010/2013.

learn more… | top users | synonyms

0
votes
0answers
7 views

invalid field or parameter url when trying to save UserID using Angular

I'm in the process of converting an existing Cllient side Sharepoint 2013 app into Angular. I'm at the point where i need to save a user to a list, when doing this you need to find out the userID ...
0
votes
1answer
35 views

Modifying folder contenttypeid via REST

I have a library where a customized SPFolder content type is defined. When I use the following code in generating the folder I'm perfectly able in creating one. However, I seem to be unable in using ...
0
votes
1answer
46 views

Pure clientside webpart for Office365

I want to build a pure clientside (angular) webpart for my own environment. I want to have as small of a footprint as possible (So please no app domain or sandboxed solution). It's necessairy this ...
2
votes
0answers
33 views

Updating an existing content type field link by JSOM

I have a content type and I would like to set some field links to hidden. The code runs perfectly, but for some reason, when I check in the UI if the field link is hidden, the changes are not applied. ...
1
vote
1answer
56 views

Project 2013 CSOM, How to add indentation to entries to lookup table

I am trying to add hierarchical set of lookup entries to a lookup table. But all the entries come in a single level. I am using managed client object model for the same. How do I implement indentation ...
0
votes
0answers
44 views

Why SharePoint 2013 Workflow sets 'Modified By' column to 'SharePoint App' when workflow is started programmatically?

I am starting a SharePoint 2013 workflow using CSOM as described in this article. When the workflow completes, the "Modified By" column of the list item on which the workflow instance had started is ...
1
vote
2answers
146 views

Does ExecuteQuery have a cache/timeout/etc?

I wasn't sure how to phrase the title, forgive me. I'm running into an issue with the CSOM (SharePoint 2010, but likely in 2013 as well), where my initial ExecuteQuery() statement takes upwards of 20 ...
2
votes
1answer
343 views

CSOM - get listitem by file URL

Task Abridgment - Access item attribute from a picture library by picture url. Long - When editing a pagelayout and an image is added to the page, the image's description should be loaded. This is ...
0
votes
1answer
64 views

People search using CSOM API

I am using CSOM in API. I used following code for content search in documents and now want to integrate People search which can search users from sharepoint website using CSOM. ...
2
votes
0answers
110 views

Custom DisplayForm using JSLink

Is there any way to customise the display form of a list using the Client Site Templates e.g. // Register the template overrides. ...
2
votes
0answers
99 views

“Value cannot be null” exception while loading WorkflowServicesManager

I am trying to start a list workflow in SharePoint 2013 using client object model. But while loading WorkflowServicesManager, it throws the error below - Value cannot be null Parameter name: ...
0
votes
0answers
77 views

Update a rating scale field of survey list using JavaScript

I have created a survey list which has 3 columns. One column is of type rating scale with value 1-5 . Using JavaScript I'm able to update the first two columns. But not able to do so for the rating ...
6
votes
2answers
107 views

Sharepoint asks for log in multiple times

I am using SharePoint 2013. When I log in in my site it asks me to do so 3 times. I think the reason behind it is because I am using two apps, so it once asks to log in into the page and later asks ...
0
votes
0answers
44 views

Is possible to set unique permissions in client side model using ECMA Script or JQuery

is possible to set unique permissions on SharePoint 2010 list items in client side model (ECMA script or JQuery) in the following link ...
0
votes
0answers
149 views

Batch Insert/Update of O365 SP list items from a datatable (using CSOM)

I have a List titled "Softwares" in my O365 site. I want to insert/update records into this list from a datatable based on a primary key column SoftwareID. If the record with a particular SoftwareID ...
0
votes
2answers
149 views

Delete column from list using Client Object Model

Developing for SharePoint Online, I've created a Contact List programmatically in my app. I now want to delete some of the columns that were added to the list. So I have the following code: var ...
0
votes
1answer
528 views

CSOM Javascript - when executing query on multiple lists getting error - SharePoint 2010

Is here any SharePoint expert, who can help me find out, why I am getting error on lists queries? I am trying to fetch data from multiple list asynchronously, but I am getting following error: The ...
0
votes
1answer
222 views

Create Next and Previous Paging Using Sharepoint List and SpServices

can anyone help me in Creating Next and Previous Paging for SharePoint List Using Sp-services With Client Side Template Binding . Below is the Code Which I was Using. $().SPServices({ operation: ...
0
votes
1answer
57 views

SPSite.AllWebs vs SPSite.OpenWeb

What are the benefits of using SPSite.AllWebs over SPSite.OpenWeb and vice versa when it comes to using-statements and/or checking if a SPWeb with a specific URL already exists?
0
votes
1answer
290 views

Determine if field exists in client-side object model?

I want to check to see if a field exists in my program, but If I use : if (item[_strContainingFieldName] != null) { item[_strContainingFieldName] = fieldValue; } I receive an error stating ...
0
votes
2answers
502 views

Updating read only fields using client side object model in SharePoint 2013

I am using managed client object model for creating list item, I want to update the Author, Created and Editor fields from code. I have tried lot of things like: var listItem = ...
0
votes
1answer
100 views

Need to take list item count on 2010 based on the selected value

I have a Sample list named as LISTA. In which i have title column, the title column values are Title A b c A b c c I need to take the count of item count of a,b,c. using soap ...
0
votes
1answer
106 views

Updating current item using jslink

I am working on a solution where in I have to update current item based on a button click. I am thinking of using JSLink to generate button with each row, when this button is clicked i have to refer ...
0
votes
2answers
539 views

CSOM and Managed Metadata Field

I'm trying to use the Client Side Object Model of SharePoint 2013 to read a managed meta data field but I get null results When I look in the Site Columns, there are 5 fields in the "GroupName" ...
0
votes
0answers
303 views

CSOM OpenBinaryDirect generates 401 error on office 365

I have used same instance of ClientContext inside a RemoteEventReceiver (MinRer.svc.cs) in a provider hosted app to get RootWeb, SubWebs, ListItems and I have added ListItems to lists. It works like a ...
4
votes
2answers
213 views

How to get only custom fields from a list?

I am working with the Client Side Object Model. In a console application I am retrieving all fields from a custom list. The problem is the Clientcontext fetches me a bunch of internal fields I do not ...
0
votes
0answers
50 views

Getting ClientContext of a subweb in ProviderHosted app

I am not happy with my knowledge about SharePoint app authontication policy. now my question is what is the best way to get ClientContext for a sharePoint site (SPWeb) inside a provider hosted app? ...
0
votes
0answers
59 views

Can SharePoint 365 access Active Directory via REST or CSOM?

I am creating a NAPA app for SharePoint 365 and there are specs to: Display information of user from Active Directory (which is NOT 365) Push tasks to user's My Site Is it possible for SharePoint ...
1
vote
2answers
1k views

Get Navigation Term for Current Page in CSOM (JavaScript)

I am trying to get the Local Properties for the Navigation Term that is currently being viewed. For example... If I navigate to http://sp2013/about/team I need to get the Local Custom Properties for ...
0
votes
0answers
353 views

Cross-Domain access limited or not happening

I am having issues connecting to the Host Site of the App, to query a List and obtain information. If i manually navigate to the url, ...
0
votes
2answers
3k views

How to get contenttype name in clientside(javascript, jquery, csom etc) in editForm?

I am using sp2013. I have custom list with 4 custom contenttype. I would like to implement some clientside code. If a user create a new item you need to select the contenttype. All contenttypes have ...
0
votes
2answers
424 views

JS/JQuery Connect to SQL Server

Right now i am modeling a ClientWebPart outside of the SharePoint server. Although, i advised the client to let me on the server to do Code Behind connection, they said not right now. Server might ...
2
votes
3answers
2k views

using CSOM to retrieve fields in a list in a view

I am trying to use the CSOM to retrieve all the displayed fields in a particular view. I require to know the field type and field internal name. I can not do: var list = ...
4
votes
2answers
3k views

Get a users Name from their ID

As part of my Sharepoint hosted App i am using a list which contains a Person or Group. I am getting the ID of the person by using the following. var ApproverID = ...
3
votes
2answers
129 views

OData Query Title startswith() A-M

I am trying to query a list where the Title starts with a letter in the range from a to m and I can't find that anywhere in the sparse documentation available. I tried this but it isn't valid and I ...
1
vote
2answers
660 views

Adding ListViewWebPart with CSOM

I have to add a few webparts to a default page using the Client side object model. For the most part this goes fine, I can add a XSLT and content query webparts. However, when i try to add a ...
0
votes
1answer
42 views

Different Results with client.svc and search api

I made a search which is only searching on a specific list. The list has 30132 elements. client.svc with the seach Webpart _api/search/ with a specfic form Both searches are returning a different ...
2
votes
1answer
258 views

How to Pass parameters from Javascript Client Object Model to Report Viewer Web Part?

I have some SQL Server Reporting Services (SSRS) reports that take parameters. I am displaying these reports via the SSRS Report Viewer Web part on a site page. I have the parameters that are needed ...
7
votes
5answers
2k views

Add Document Library XsltListViewWebPart using CSOM or web services

How to add a document library XsltListViewWebPart (or list view web part) on page using CSOM with SP2013 when we do not want to use the in-built view with "Name, Modified, Modified By" fields? Custom ...
1
vote
1answer
270 views

REST returns List Items but Response is blank in SP2013

I am SOOOO frustrated ... I have a jquery function to grab list data and when I log "data" I see the full {d} with a {results} holding all the list items. But when I run it through an $.each function ...
2
votes
1answer
148 views

SPWeb.AlternateCSSUrl equivalent Client Side Object Model

Does someone know the equivalent of SPWeb.AlternateCssUrl in the client side object model? Thanks
1
vote
1answer
753 views

Not able to fetch Term store and related terms using client object model

I want to fetch termstore, Termsets and related terms.However, Iam not even able to fetch the termstore. Below is the error message. TypeError: termStores is undefined termStoresEnum = ...
1
vote
1answer
186 views

SharePoint.Backbone Undefined Source — JSON returns Empty

I am working in SharePoint 2013 Foundation and I have a custom list named Properties that I am trying to use in a Backbone Application. The list contains all 90 of our properties and each property's ...
2
votes
2answers
713 views

Difference between OData, REST and client object model

I am new to SharePoint, and confused about all of these terminologies, what are the differences between these 3? when do we use each one?
0
votes
1answer
701 views

Client Object Model to Retrieve UserProfileAttribute

we can get directly user information by using Server object but how to get this by using Client object model ?
0
votes
0answers
94 views

How to Install App from sharepoint hosted app to sub sites

Here is my function, but it doesn't work: var context = new SP.ClientContext(appweburl); var factory = new SP.ProxyWebRequestExecutorFactory(appweburl); ...
1
vote
1answer
112 views

Double records on list.getItems using Javascript

Using fairly straight forward code to get back a country list for the user...but each time it loads I'm getting double items...i.e all the items are in the drop down twice...in fact time I trigger the ...
1
vote
1answer
368 views

Set request access email address through CSOM

In the server side object model it's possible to set the request access email address through the property SPWeb.RequestAccessEmail (MSDN). Since we are moving our SharePoint tenant to Office365 I'm ...
0
votes
2answers
530 views

CSOM: Get Url name of list

What is the best way to get the url name of the list using CSOM. For example, we have a list /sites/site/Lists/MyList/ We need "MyList". We could get this, for example by parsing ...
0
votes
1answer
2k views

Programming to retrieve list items in a SharePoint list using Javascript

I have requirement which is Retrieve List Items in a List(list created through OOB) Display those list items on the sharepoint site by binding to repeator control Using javascript and client object ...