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
5
votes
3 answers

SP2010 Client Object Model 3 MB limit - updating maxReceivedMessageSize doesnt get applied

I am using Client Object Model to interact with Sharepoint 2010. When I tried to upload documents greater than 3 MB using Client OM, it gave an error Bad Request. Microsoft suggests this to fix the problem. I tried that and updated the…
shaibee
  • 213
  • 3
  • 11
5
votes
1 answer

Sharepoint 2010 Client Object Model - Large Library - Find item without iteration

I have a large document library (at the moment ~6000 documents) and I need to find a document based on a custom field value (custom column on the library). Is there a way of getting this document back without iterating through all 6000 documents? I…
Russell
  • 17,481
  • 23
  • 81
  • 125
5
votes
3 answers

Access denied office 365 / SharePoint online with Global Admin account

I am going crazy since two days solving an issue. The problem is; I am making a console APP which is talking to SharePoint Online using global admin account (One which was specified as admin while making a new subscription). What I am trying to…
5
votes
4 answers

How to get a SharePoint List Item By Unique Id

Is it possible to get SP List Item by unique Id (without writing a Caml request) if I know a related List Id. var item = list.GetItemById("CFA9E204-6509-424B-A246-0DE5295C42B2"); When I tried to get item using this code, I received an error: "Input…
Warlock
  • 7,321
  • 10
  • 55
  • 75
5
votes
2 answers

What is a difference between DeleteObject() and Recycle() methods for SP.Folder

Could anybody help me to understand a difference between DeleteObject() and Recycle() methods for SP.Folder? I found this documentation, but it's not clear for me. http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfolder.recycle.aspx
Warlock
  • 7,321
  • 10
  • 55
  • 75
5
votes
2 answers

Sharepoint client object model: How to get all the fields in a list

I have a list named "Discussions List". I want to bring all columns from the list. I want to know how to do it SharePoint Client Object Model.
Roy Justin
  • 653
  • 3
  • 10
  • 23
4
votes
3 answers

SharePoint - Client Object Model - Get Sub Folder Items

each 'listItem' contains items , how to get them? I'm trying for a while but only fail , help , thanks the camlQuery is from some tests and examples from the web , didn't help ( had many changes) ClientContext clientContext = new…
Zakos
  • 1,492
  • 2
  • 22
  • 41
4
votes
2 answers

Approve file without modifying Modified date and editor values using Client Object Model

http://social.technet.microsoft.com/Forums/ar/sharepoint2010programming/thread/b60495ee-29be-4aa0-935e-484abce6b9d2 explains how to approve a file using Client Object Model. Doing so, the 'modified date' and 'modified by' values gets changed (which…
arjabh
  • 71
  • 1
  • 5
4
votes
4 answers

Get SharePoint list by Internal Name using ECMAScript / JavaScript Object Model

How can I load items from a SharePoint list using its InternalName? As far as I know I can get it using either Id or Title like the following: var clientContext = new SP.ClientContext('/News/'); var web = clientContext.get_web(); var list =…
4
votes
1 answer

Sharepoint 2010 Client Object Module getting a site url list

I’m trying to learn SharePoint Client Object Model, specifically how to get a list of all SharePoint site URLs using a remote connection. This is possible using webservices…but I want to do it using the client object model. I’ve figured how to get…
4
votes
5 answers

SharePoint show Ribbon with multiple webparts on page

I've created a sharepoint page that has an xslt webpart and a 2nd webpart that is unrelated to the question When we add this second webpart the ribbon bar is hidden and you have to click the webpart to get the ribbon bar shown again. Clicking the…
GeertvdC
  • 2,758
  • 1
  • 22
  • 26
4
votes
3 answers

cannot find the SPSite name space

I am unable to find the name space for the SPSite I have imported these so far: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using Microsoft.SharePoint; using System.Collections; using…
OPK
  • 4,120
  • 6
  • 36
  • 66
4
votes
1 answer

set properties for ShimFileCreationInformation object

I am writing some unit test cases using fakes framework. I am using an object ShimFileCreationInformation from Microsoft.SharePoint.Client.Fakes namespace. Now, I pass this object to a function. Inside the function, I am trying to assign a value to…
Aditi
  • 1,188
  • 2
  • 16
  • 44
4
votes
3 answers

Get list of installed apps using Client Object Model

I have been trying hard to find any example, resource which explains how to get a list of installed apps in SharePoint 2013 environment using Client Object Model. So far I have found nothing. Could you please share some links if you happen to know…
4
votes
2 answers

.Net Client Object Model in Sharepoint returns 500 internal server error while executeQuery

I am trying to see all the lists in my Site using sharepoint Client Object model , following is my code using (ClientOM.ClientContext ctx = new ClientOM.ClientContext(UrlTextBox.Text)) { //Get the site …
AnoojNair
  • 491
  • 3
  • 11
  • 18
1
2
3
18 19