The client-side object model (CSOM) provides access to a subset of the SharePoint Foundation server object model, including core objects such as site collections, sites, lists, and list items and allows you to program against these from client side applications.

learn more… | top users | synonyms

3
votes
1answer
50 views

Unable to get list using CSOM on SharePoint 2013

I'm trying to get a list using CSOM in a SharePoint 2013 that was migrated from 2010. This is the code that I'm using, and it is working in all my environments except this one. function ...
2
votes
0answers
33 views

Can't apply filter [ME] to person field updated by CSOM

I create calendar item and add user field value by SharePoint CSOM. Item successfully created but I can't apply [ME] filter to person field. Returned no results. But if I open item to edit and save ...
1
vote
0answers
28 views

Get user permissions using CSOM

For SharePoint Online, I am trying to get user permissions on a site, including library, folders and files, using CSOM. I have the following code: ClientResult<BasePermissions> info = ...
4
votes
1answer
28 views

Site content type changes are not propagated to inheriting list content types

I have the following situation: I've created several site columns en site content types I've created several sub webs with list, inheriting these content types I assumed that if I updated the site ...
2
votes
2answers
31 views

CSOM get document by ID

I'm using the following CSOM code to retrieve a document title by id: ClientContext context = new ClientContext("http://sharepoint"); List oList = context.Web.Lists.GetByTitle("Documents"); ...
0
votes
0answers
17 views

SPservices GetListItems giving 400 bad request error

I am using the below mentioned code to retrieve a column value from a list and calculate its sum. The below code is giving a 400 bad request error. function sum (attr,CamlQuery,BA) { ...
0
votes
0answers
23 views

Getting 400 bad request error while doing CSOM GetListItems

I am using the below mentioned code to get data from a list var Totalsum=0; var attr="ows_columninternalname"; function sum1(CamlQuery) { var soapEnv = "<soapenv:Envelope ...
1
vote
1answer
20 views

Retrieve List/Library “Shared With” Users and Groups using Javascript

I can retrieve Shared With info from a SharePoint 2013 (On Premisses) List/Library (not an item) using Javascript? I thought it could be available through ...
1
vote
0answers
14 views

Remove users and their MySite using CSOM

I have a scenario in which I have to remove the users from SharePoint after they have left the company. Say, I have 5 users who left the company. So I'll write a CSOM code to read the names from a ...
1
vote
0answers
21 views

How to access subsite's groups with sitecollection context?

I have two sub-sites in my sharepoint site,SampleSite1 and SampleSite2 under Sitecollection called MainSite. http://xyz.sharepoint.com/sites/MainSite/ - SiteUrl ...
2
votes
0answers
16 views

How to update the Microsoft.SharePoint.Client.File object Author and Editor property after successful upload

I am trying to update the Microsoft.SharePoint.Client.File object Author and Editor property after successful update. below code I have written for that. foreach (Attachment att in attachments) { ...
1
vote
0answers
10 views

CSOM: Add app to web that is present in organization app catalog

I need to install Apps to a web programmatically using CSOM. Apps are already added to the App Catalog of the tenancy. Is it possible? I am aware of LoadAndInstallApp API and it works but requires ...
3
votes
1answer
25 views

Passing password in encrypted form to CSOM model

I want to send the password in encrypted form when creating a new ClientContext object. Is it possible and how? using (ClientContext context = new ClientContext("http://yourserver/")) { ...
0
votes
1answer
19 views

404 Missing jQuery in _layouts folder

I have been stuck for a while trying to find out what exactly the _layouts folder does for SharePoint and why it may be causing any script I write and attempt to deploy on the site to not work. They ...
3
votes
1answer
43 views

Get document ID with CSOM

I'm using the following code to get a document via its documentid in a ASP MVC application: ... // Get Document ID ctx.Load(uploadFile, f => f.ListItemAllFields); ctx.ExecuteQuery(); documentID = ...
2
votes
2answers
20 views

Where are the sharepoint 2010 client assemblies

I am wondering where I am able to download the sharepoint 2010 client assemblies (the ones located in folder 14)
1
vote
1answer
16 views

EventListener for List changes in Sharepoint Hosted app

I'm developing a sharepoint hosted Add-in, which should react to a change of a list field of a list in the hostweb. I need some kind of EventListener for a list field. For example: List field Gets ...
0
votes
1answer
14 views

What permissions are needed to create new TermGroup in Default Termstore?

To add a taxonomy-Column to a List I try to add a new TermSet in the default Termstore. This is the code: TermStore termStore = session.GetDefaultSiteCollectionTermStore(); ...
3
votes
3answers
64 views

Cannot contact site at the specified URL on try ClientContext.ExecuteQuery();

I try to get list from remote SharePoint server using CSOM in .NET Web Application, but ClientContext.ExecuteQuery() return exception Cannot contact site at the specified URL If I try to get ...
0
votes
0answers
12 views

JSOM column creation in host web doesnt work

I get an error (the error message is empty but it doesnt work) with this script for creating a column on a SharePoint host web. <script type="text/javascript"> var clientContext = new ...
2
votes
0answers
26 views

Desktop application needs to support all versions of SharePoint and SPO

I am connecting to the different SharePoint environments using the CSOM. Whats the best way to deploy the available DLLs to support all SharePoint environments? Do I need to dynamically instantiate ...
0
votes
0answers
24 views

Change preferred user lang in CSOM

I added a button in the master page to switch easily between 2 languages. For now it sets the cookie but I need to change the preferred language in user/profile/regional settings. I'm searching ...
2
votes
1answer
22 views

SharePointContextProvider not found when Creating a provider hosted app with VS2015

I try to create a provider hosted app (MVC) with VS2015. I use the standard template-approach like described there: http://chakkaradeep.com/index.php/building-apps-for-sharepoint-with-mvc/ (Or many ...
1
vote
2answers
29 views

use CSOM for the GetListAndView WebService for multiple lists/views

I know how to use lists.asmx?op=GetListAndView to get list and view details. I'm trying to do the same using CSOM. And, to keep it efficient, I wanted to make one call for multiple lists/views. But ...
2
votes
0answers
67 views

Sharepoint List creation from ListTemplet .stp using CSOM

I want to create list using .stp file which is uploaded in to the list template Gallary. --> I am using Console application to create list in online site. --> have an any idea how to add list from ...
1
vote
1answer
19 views

Adding a Folder with Client Side Object Model using Custom Content Type

I need code for adding a folder with Client Side Object Model using Custom Content Type (Folder) on SharePoint Library.
1
vote
1answer
55 views

How to remove write permission for all users from a file / folder

What I want to do Im trying to write a software that is able to remove write permissions from all unsers for a file or folder so noone can modify/delete/overwrite the file. What I already did I ...
4
votes
0answers
30 views

How to find the last Logged-In time for the external user for a Sharepoint online Site?

I need to know about the information for the external user last logged-in time over a site. Is it possible to get through REST or Client-Object Modal?
0
votes
1answer
28 views

Powershell: Upload .html Master Page and generate .master

I am attempting to upload a new Master Page to a SharePoint 2013 site using Powershell. I am copying the .html file to the "Master Page Gallery" list successfully but I cannot find any way of having ...
-2
votes
1answer
23 views

What is client object model SharePoint online ie office 365?

What is client object model SharePoint online ie office 365 ?
0
votes
2answers
48 views

What is client object model SharePoint 2013?

I am new to SharePoint, I want to know what is CSOM and REST in SharePoint 2013. what is the basic difference between CSOM and REST in SharePoint 2013
3
votes
2answers
55 views

Performance will be better using CSOM or REST API to retrieve data from 4 lists simultaneously.?

I am developing Sharepoint hosted app, and there is a situation where i need to get the data from 4 lists simultaneously, then use it later on. I am able to do it using CSOM. But performance wise what ...
1
vote
0answers
25 views

SPA using c# and angular js code in SharePoint provider hosted app

We have built an app using provider hosted SharePoint app model with angularjs. Now we are planning to use the app on a SharePoint site which is integrated to ADFS. When I google on how to use ADFS ...
1
vote
1answer
116 views

How to Add Child Links Under Top Level Global Navigation Headers in Online Sharepoint 2013 Usinge PowerShell V 3.0?

I am stuck on a PowerShell V3.0 problem for programmatically adding Child Links to the Global Navigation bar in our Online SharePoint 2013 (Office 365-Azure) site. I have found code that works for me ...
4
votes
2answers
92 views

How to get people picker column user login name using CSOM in Powershell?

currently i have ABC list with People column type[Person or Group] i am trying to get user name from column using CSOM in Powershell script for SharePoint Online.. so please suggest some solutions.. ...
0
votes
0answers
33 views

CSOM, ExecuteQuery fails on first try

When I execute the following code about a SharePoint online library, I always get an error when ExecuteQuery executes for the first time but it works when ExecuteQuery executes for the second time. ...
0
votes
0answers
22 views

How to create/add same list columns to another existing list content type programatically?

I have a requirement that to append the list columns with field references. I have List Content type A and the same List Content type A in another site. I need to append the newly created columns of ...
0
votes
1answer
33 views

Mix CSOM and JSOM? Any disadvantages?

I need to write an Office365-App. I want to use a provider-hosted MVC-Application for this. As I want to use some kind of "API" on some pages, that returns a JSON that then is used inside JS to ...
4
votes
2answers
76 views

Is it possible to create custom User Profile Properties using CSOM or SPO PowerShell?

I have not been able to find much information regarding creating custom User Profile Properties via CSOM or SharePoint Online PowerShell. Is this possible, and if so, how do I go about doing it?
1
vote
0answers
32 views

Sharepoint permissions regarding One Drive

I am creating an application which makes folders for users and sharing it to them, in a main OneDrive account. Seems like the permission are not the same or some how being overridden by OneDrive ...
0
votes
0answers
19 views

Get custom Content Types from a SharePoint site collection

I have a requirement where I am required to get all the custom content type(not the default one already available) of a SharePoint site collection using CSOM C#. Is there any way?
2
votes
0answers
30 views

Find alerts in SPO library using CSOM

How can I find alerts set on my lists using CSOM? If necessary, I have the alert GUID and I have the list GUID Alert={391EDCAC-BDC0-4561-8E86-5291E3323CF8} ...
1
vote
2answers
46 views

Displaying All sites a User Has access to, Across an Entire Web Application!

I have had this issue for a while, and been asking piece-meal questions for a few weeks. I finally created a full solution that worked. And wanted to provide the full solution, that was both EFFICIENT ...
2
votes
0answers
21 views

SharePoint Workflow Subscription Service failed

I have one requirement to start the SP workflow through JavaScript. For this, i have wrote some lines of code to start the workflow.But I am getting a Subscription failed error due to undefined ...
6
votes
1answer
52 views

Is context.executeQueryAsync a transactional operation?

I update multiple items in a loop and then call executeQueryAsync() on ClientContext class and this call returns error (failed callback is invoked). Can I be sure that not a single item was updated of ...
4
votes
1answer
34 views

Can we unlock a ShortTerm lock via CSOM for SP2013

We are using SP2013 with OWA installed. Users often complain about a file stored in SharePiont being locked by another user not in office. Error is "The file "xxxx" is locked for exclusive use by ...
0
votes
0answers
22 views

Unable to create web page from content type in custom pages library in SharePoint Online

I have a requirement to create a custom Web Pages Library using CSOM code. I am able to create a library and apply the custom content type but when I try creating a page, it gives an error. Please ...
2
votes
0answers
42 views

Implementing paging for a list

I have to implement paging for the list data and the paging should be as: previous 1 2 3 next And the new page number should be added automatically if any item is added to the list if it ...
1
vote
2answers
68 views

How to use People Picker in CSOM?

I am doing Console project to get data from SharePoint using CSOM. I want to use People-picker. I using following code but it returns nothing. Can anyone help? ...
3
votes
1answer
37 views

SP2013 - Failed to call, back to back executeQueryAsync() functions

This is exactly what I want to accomplish, given below are the steps I'm performing. Update sub task status based on subTaskId (SP Task List), using executeQueryAsync() Get all sub tasks based on ...