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

2
votes
1answer
50 views

Delete major version powershell csom

I have a document library where i have uploaded documents it has 2 major versions and i want to delete the first major version. Is there powershell csom code i can used to do this
2
votes
1answer
245 views

How to get “Active Directory” groups in Sharepoint 2013 using “Client Object Model”

I tried this code, but I get only the SharePoint Groups. var groupCollection; function getAllGroups() { var ctx = new SP.ClientContext(); groupCollection = ctx.get_web().get_siteGroups(); ...
1
vote
1answer
540 views

Getting the User Profile Picture URL by E-Mail via CSOM

I've seen many questions about how to achieve the User Profile Picture URL via the CSOM (Client-Side-Object-Model) API. However none of the solutions worked or they required the Account Name of the ...
3
votes
1answer
59 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 ...
3
votes
3answers
737 views

SP O365 upload big file via CSOM

Hi I try to upload large files (900 MB) to SP Online (actually the OneDrive Business) but seems to follow SP style. Tried this via CSOM and powershell 70 MB are fine but when I try 900 MB a timeout ...
1
vote
0answers
30 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 = ...
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) { ...
2
votes
0answers
34 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 ...
4
votes
1answer
30 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
34 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
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 ...
3
votes
1answer
26 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
16 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(); ...
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
18 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 ...
1
vote
1answer
820 views

How to start SharePoint Workflow programmatically using CSOM

I am trying to start share-point workflow using CSOM(Client side object model) by following means of code. But i got the following error from the line mark in comment. Please help me to figure out ...
0
votes
1answer
20 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 ...
0
votes
0answers
25 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 ...
3
votes
1answer
47 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 = ...
0
votes
1answer
642 views

Load all fields for a specific ListItem using CSOM

I want to load all FieldValues for a specific ListItem ForExample public ListItem GetItemById(List SPList, int id, string[] fieldNames) { using (Ctx) { ...
3
votes
3answers
65 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 ...
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)
4
votes
1answer
339 views

CSOM Search API does not return all the results

I am having a problem with the code below. It is not returning all the rows/items which are found in different lists. The total number of items is 28, but the code below is returning 19. I have set ...
1
vote
1answer
17 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 ...
1
vote
2answers
593 views

How to get all the sharepoint 2013 site groups using C# client side object model

How to get all the SharePoint 2013 Site Groups using C# Client Side Object Model I am using VS 2013 on my laptop and SP 2013 is on the network I read that I have to use Credentials or equivalent ...
1
vote
1answer
119 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 ...
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
1answer
102 views

Authenticating to Office 365 vNext with Multi-Factor Authentication enabled

I am looking for any working examples of remote CSOM or SOAP OData calls against Office 365 with multi-factor authentication enabled. The available documentation is unclear on this scenario. I think ...
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 ...
1
vote
2answers
30 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
1answer
25 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
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 ...
2
votes
0answers
68 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
20 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
52 views

Disable Quick edit with CSOM

How can I disable "Quick edit" on lists with CSOM?
4
votes
0answers
31 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
24 views
0
votes
2answers
49 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
56 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 ...
4
votes
2answers
95 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
1answer
67 views

Create tasks programmatically in Project Server 2013

I'm trying to create a simple task in a Project, using Project Server 2013 CSOM. I have looked everywhere, but i couldn't find anything that would solve this issue. I can create a new empty project ...
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
77 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?