Questions tagged [sharepoint-clientobject]

API to interact with SharePoint data remotely from script that executes in the browser

Source: Client object model resource center | SharePoint 2010: The new .NET managed, Silverlight, and ECMAScript (JavaScript, JScript) client object models in SharePoint Foundation provide powerful ways to interact with SharePoint data remotely from script that executes in the browser, from Silverlight applications, or from .NET client applications. These APIs include a subset of the features available in the server object model, providing access to objects at the site-collection level and lower within the SharePoint hierarchy.


SharePoint 2013 client APIs provides SharePoint client object model to retrieve, update, and manage data in SharePoint 2013. SharePoint makes the object model available in several forms:

  • .NET Framework redistributable assemblies
  • JavaScript library
  • REST/OData endpoints
  • Windows Phone assemblies
  • Silverlight redistributable assemblies

synonyms: client-object-model

281 questions
3
votes
2 answers

Get all items of a sharepoint list

i want to download all files of my sharepoint list. I download the files with this method: public void DownloadFilesOfSpecialtys( ) { using (var clientContext = new ClientContext(url)) { foreach (var…
3
votes
0 answers

Programmatically add calendar overlay (aggregation) to SharePoint calendar using the Client Object Model

I'm currently trying to add a calendar overlay to a custom SharePoint-Calendar using the Client Object Model. I've done this before, using the Server Object Model. See the Code sample below: SPView targetView =…
SWW13
  • 63
  • 6
3
votes
1 answer

get the name of subsites on which user dont have permision in sharepoint using client object model

Hi I am using client object model in .net to access sharepoint data. I have site in which i have some subsites. out of these subsites some sites are not accisible to me. I want to get the list of this subsites (at least title for that subsite), so…
user2638355
3
votes
1 answer

Get all lists root folder with SP.js

I need to get all root folders of lists on current web, with shrepoint client object model. I try to use this code, but i have error var context = SP.ClientContext.get_current(); var lists =…
user2944829
  • 503
  • 1
  • 5
  • 11
3
votes
1 answer

Is there a way to get Folder object from ListItem one?

I'm trying to get Folder object by its path in SharePoint 2010 client application using Client Side Object Model (.Net 4.0). I need to check whether folder described by 'folderPath' variable exists in the library and then get the Folder object for…
adams
  • 177
  • 1
  • 1
  • 8
3
votes
2 answers

Sharepoint 2013 Client Object Model file larger than 2 Mb exception

I am new to Sharepoint and Client Object model. I am stuck with a problem and not been able to fix the issue. I want to upload files more than 10 MB using Client Object Model in Sharepoint 2013. I get the following exception The request message is…
3
votes
2 answers

Client Object Model Sharepoint How to get the Instance ID

So In my sharepoint site contents page i have an application. Can anyone tell me how to get the instance id of it. so that i can invoke the link : http://testingwebcompany.sharepoint.com/_layouts/15/appredirect.aspx?instance_id={ <>} I can't seem to…
user2526202
  • 39
  • 1
  • 2
3
votes
2 answers

SharePoint Foundation 2010 Client Object Model Authentication

I want to implement a custom logging by passing authentication information, as shown in below reference…
chamara
  • 12,649
  • 32
  • 134
  • 210
3
votes
1 answer

sharepoint 2010 client objects search

I'm just getting into Client Objects, writing Caml querys to retrieve lists and items and presenting the output in an asp.net MVC environment and all works fine. The idea is to use MVC as a presentation layer and Sharepoint as a repository, for…
Ron Weston
  • 280
  • 2
  • 16
2
votes
1 answer

SAML Token format?

I have some working code that I have been using on a test O365 site- it works perfectly. I can authenticate, and pull data using the sharepoint client object model. On another site, that was migrated from BPOS, claims based auth fails. …
Nicros
  • 5,031
  • 12
  • 57
  • 101
2
votes
1 answer

How to create a sharepoint calendar list item using client object model

I am trying to create a sharepoint calendar event using client object model. I can create item and set column values all columns except "EndDate" column. When I try to set this column I get the following error Translation of message from German is…
2
votes
1 answer

Returning Guid of newly created item in Sharepoint Library

I am using the method File.SaveBinaryDirect in Microsoft.SharePoint.Client to insert new documents in a Sharepoint Library. just wondering what is the most effective way of getting the Guids of those new records.
Luis
  • 5,979
  • 2
  • 31
  • 51
2
votes
1 answer

Passing args in ExecuteQueryAsync method.

I have Silverlight app, which has some combo boxes, which I want to fill with fields names from SharePoint list. Every ComboBox can have different fields from this list, e.g. ComboBoxA holds user field and ComboBoxB number fields. Now, I don't want…
2
votes
2 answers

get currently selected list in javascript on load - sharepoint 2010

I'm currently trying to find out, how to get a reference to currently selected list in sharepoint from javascript. I can get it if I know the title, or id, but I want it to get the list dynamically depending on where the user is. I have this code…
2
votes
1 answer

"Object reference not set to an instance of an object on server. The object is associated with property File" when read file from SharePoint

I've read file from url sharepoint and it returns that error: Object reference not set to an instance of an object on server. The object is associated with property File I've tried to count number of file in this folder url so it could count true,…
leebongee
  • 103
  • 1
  • 10