Questions tagged [csom]

CSOM (Client Side Object Model) is a web services-based API of SharePoint allowing easy remote access to data and SharePoint's functions.

CSOM, which stands for Client-Side Object Model, is a web services-based API of SharePoint. It allows access to SharePoint data and features from remote clients. CSOM was introduced in SharePoint 2010 and greatly enhanced in SharePoint 2013.

Both JavaScript and .NET bindings to CSOM exist. Software leveraging CSOM can integrate with SharePoint without the need to run within a SharePoint farm.

In SharePoint 2013 CSOM is the only API available to software built using the new Apps for SharePoint architecture. Apps for SharePoint run side-by-side, typically in the cloud, and integrate with both cloud and on-premise SharePoint farms.

Corresponding MSDN documentation is located here, with separate JavaScript and .NET API references. The web services-based API underlying CSOM has been documented as part of Microsoft's Open Specifications initiative.

941 questions
0
votes
1 answer

I'm getting a ClientRequestException when trying to get my libraries list (Sharepoint CSOM 2010)

Hellu This exception appeared for no reason at all, just like that. 15 minutes earlier, I had no problems at all. Maybe someone at my office did something with our SharePoint Online, but it's seems unlikely as, as far as I know, I'm the only one…
Kilazur
  • 3,089
  • 1
  • 22
  • 48
0
votes
1 answer

sharepoint javascript collection not initialized error

I have a strange problem. It occurs totally randomly, I have no idea why and in what circumstances it comes. Details: I want to get the members of a Group with the executeQueryAsync function. In the callback the userEnumerator =…
VargaVD
  • 13
  • 1
  • 5
0
votes
2 answers

JSOM SharePoint 2013 Error while getting WorkflowSubscription

I was following the instruction from msdn to get WorkflowSubscriptionService over JSOM. Working with the SharePoint 2013 Workflow Services Client Side Object Model: http://msdn.microsoft.com/en-us/library/office/dn481315(v=office.15).aspx var…
JSX
  • 28
  • 1
  • 3
0
votes
1 answer

Retrieve data from list in SharePoint 2013 provider hosted App

I have developed a provider hosted app in SharePoint 2013. As you already know, Visual Studio creates web application and SharePoint app. The web application gets hosted inside IIS and the SharePoint App in SharePoint site collection. I'm trying to…
Mohamed Samir
  • 11
  • 1
  • 4
0
votes
1 answer

pass current user name in caml query - JavaScript

How can we pass current user login name in caml query where condition? I want to get only the list items pertaining to logged in user. For this I need to pass loginName of current user in caml query. Please help. I have a function to get…
user1841395
  • 29
  • 1
  • 1
  • 6
0
votes
1 answer

SPList vs SharePointclientObj.List

What is the difference betweeen these? I am trying to programatically (on a NON sharepoint server computer) get sharepoint lists (I am an admin of these lists) and convert them into SQL Tables. So far I have been able to open the lists but not get…
JPK
  • 1,324
  • 2
  • 14
  • 25
0
votes
1 answer

How to Sign-Out from an authenticated ListDataProvider/Authenticator in Windows Phone 8

I am reading a SharePoint list from Office 365 inside a Windows Phone 8 app. My app-code is based on this sample code from Microsoft. It uses…
fabsenet
  • 372
  • 2
  • 15
0
votes
3 answers

Impersonation EPM using PSI or CSOM

For a project I have to sync hours from an external program to EPM. There is no requirement to use the Client Side Object Model of EPM 2013 or the PSI. But because Microsoft recommends the CSOM on their website for all new applications I tried to…
mrtentje
  • 1,402
  • 2
  • 22
  • 43
0
votes
1 answer

WCF for creating documents from templates in SharePoint

I'd like to create a document in SharePoint 2013 using a call to a WCF (or any other web service) from my console application. I've been told that WCF access is deprecated in SP13 and will be removed in future versions. Instead, CSOM is to be used…
Konrad Viltersten
  • 36,151
  • 76
  • 250
  • 438
0
votes
1 answer

Retrieving Start/End Time fields with SharePoint Client Object Model

I have some experience using the SharePoint Client Object Model to retrieve text fields and URLs/images from lists in SP 2013. I'm currently trying to do something similar with a calendar. I have been able to successfully retrieve Title and Location…
0
votes
2 answers

SharePoint 2013 Property Bag CRUD using jQuery (REST API) and CSOM (ECMASCRIPT)

for 2 days i'm going nuts with the property bag in SP 2013 using javascript and CSOM. I was following this post example property bag about writing and reading property bag keys in SP 2013 using CSOM ... and it works great! However can somebody tell…
David Dury
  • 5,537
  • 12
  • 56
  • 94
0
votes
1 answer

Sharepoint Online 2013 CSOM constructor error for AttachmentCollection object?

I'm writing a script to copy items from one list to another on a sharepoint online server. I'm using the 2013 sharepoint Client Side Object Model (CSOM) to script this in powershell ISE. This should be an easy task, but it's proving just the…
user2529323
  • 31
  • 2
  • 5
0
votes
1 answer

Uploading multiples files to Sharepoint with CSOM results in SocketException

I've been using Client-Side Object Model in C# for Sharepoint2010 for a few weeks, and I've tried uploading files with File.SaveBinaryDirect and by adding the file to the list and then calling ExecuteQuery. Both methods are successful when I just…
gdube
  • 77
  • 7
0
votes
1 answer

How to get WebPartManager for a Page from App?

I'm trying to get a webPart manager for the page, where my App was added. How can I get the current page server relative Url? using (var clientContext = new ClientContext(SPHostUrl)) { var serverRelativeCurrentPageUrl =…
Warlock
  • 7,321
  • 10
  • 55
  • 75
0
votes
3 answers

Is it possible to get the timezone of a Sharepoint site programmatically using Microsoft.SharePoint.Client?

Is it possible to get the timezone of a Sharepoint site programmatically using Microsoft.SharePoint.Client in C#? I need the Sharepoint site timezone to match it with a particular timezone.
Rhia
  • 1
  • 1
  • 2