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
1
vote
1 answer

Update ProjectedField with JOIN in Sharepoint using Javascript client object model

Suppose I have 2 Lists: Teams and Employees. Each team has a number of employees: Teams ID Name Employees ID Name TeamID (foreign key of Teams) If I created a Join query of Employees LEFT JOIN Teams, could I then set_item and update the…
New Dev
  • 48,427
  • 12
  • 87
  • 129
1
vote
2 answers

Create a site-column of type user, multichoice and multiuser using Sharepoint Client Object Model

I'm trying to create site-columns with following types: Text, Note, Number, Choice, User, MultiUser, MultiChoice I've implemented it for all the types except for User, MultiChoice and MultiUser. Can't seem to find how to achieve it. This is what…
Abhishek
  • 1,974
  • 5
  • 31
  • 67
1
vote
1 answer

SharePoint 2010 CSOM - 401 on subsite query

I am trying to use the CSOM to access data from a root site, then loop through its subsites to get into files that are stored in its lists. When I go to create the ClientContext, it works fine with the root URL, but when I use one of the subsites'…
1
vote
0 answers

Validate columns against validationformula client object model while uploading documents

Please see the below code where List metadata contains values for my SharePoint columns/fields. I have to validate against Field.validationformula specified in SharePoint site. Can some one helps me to elaborate the provision how to do this…
1
vote
2 answers

C# Check SharePoint List permissions using SharePoint Client Object Model

From a client application, I need to check if a given user has permissions on a given document library using Client object Model. I want something equivalent of the following Server object…
Maha Rizk
  • 85
  • 1
  • 8
1
vote
1 answer

Sudden "Cannot contact site at the specified url" error for no apparent reason

I have a SharePoint site with a few subsites. I also have a C# program which connect to one of these subsites and import files to SharePoint. A few days ago, I installed this program on a Windows Server 2008 R2 SP1 Standard server (since it was…
Kilazur
  • 3,089
  • 1
  • 22
  • 48
1
vote
1 answer

Create File on fly and upload it in SharePoint in C#

I want to write in MemoryStream and then put/ upload the same in Shared documents in Sharepoint Below is the code I am trying:- var clientContext = new ClientContext("https://server.info/"); string fileUrl = "/Shared…
Neha
  • 103
  • 2
  • 8
1
vote
2 answers

How to open a document from SharePoint using the Client Object Model

I am trying to recreate SharePoint's open item behaviour from a client app. The behaviour I am trying to achieve is to give my application a URL to an item in SharePoint and for the item load in it's native editor with the SharePoint options…
1
vote
2 answers

Upload a file to Sharepoint 2010 with powershell 2.0

I'm struggling since a couple of days to upload files to Sharepoint 2010 with powershell. I'm on a win7 machine with powershell v2 trying to upload to a SP 2010 site. I'm having 2 major issues $Context.web value is always empty even after…
1
vote
1 answer

How to get the SharePoint current page URL and current page Name using Client Side Object Model?

I need to add items to a SharePoint list using client object model. The issue I am facing is: Suppose I am at a page whose URL is http'://sharepointserver:7575/details.aspx I want to fetch this complete URL & Similarly I need to fetch the current…
Bhargav
  • 124
  • 6
  • 19
1
vote
1 answer

How to add new items to SharePoint List using List.asmx native WebService and client object model?

I need to add items to a SharePoint list by using client object model and Lists.asmx web service. How can this be achieved? Also, I am not able to understand why do we use Lists.asmx web service when we can directly add items to SharePoint list…
Bhargav
  • 124
  • 6
  • 19
1
vote
2 answers

Extend SharePoint Client Object Model for SystemUpdate method

Is there a way to extend SharePoint client object model and add ListItem.SystemUpdate method?
san
  • 304
  • 4
  • 20
1
vote
1 answer

Is it safe to use Reflection against SharePoint 2010/2013 Client object model to read Private variable in .net?

During some Read/Write/Update operations SharePoint Client Object model returns '(503) Service Unavailable' exception, reattempt solve this problem. Here, re-attempt Operation creates a new collection of return values and we are not able to assign…
1
vote
0 answers

Get display name for user profile properties

I am trying to show which user profile properties the users are missing to fill out. It is fairly easy to get the usersprofile, and userprofile properties: function getUserPropertiesFromProfile() { // Get the current client context and…
1
vote
1 answer

SharePoint - How to disable edit item access to the creator once the item is moved to "pending" status?

I am developing a simple SharePoint site application in which I'm trying to incorporate the below scenario. "Once the creator submitted an item, the creator should not edit the item". I have set "Yes" to "Require content approval for submitted…