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
0
votes
2 answers

How to get SPProductNumber via Client Object Model?

I am looking for way to get SPProductNumbervia client object model. I have sharepoint app, and I need to connect client application and that app. To do this I need to get SPProductNumber. If there is not way, anyone know how to check it with…
0
votes
1 answer

SharePoint JSOM: get SPFolder custom field value

We have a SharePoint 2013 document library a custom content type added to the library, based on standard "Folder" content type; a new "DisplayName" text field added to the content type a few folders of that custom content type were created in…
0
votes
1 answer

vb.net client object model: view content from sharepoint 2010 wikipage

On SharePoint 2010 i have many wikipages containing a table. Is it possible to view the content of that page in vb.net using the client object model? I tried to get the file code using a stream but the text i get is a lot of asp.net code but not the…
0
votes
1 answer

"Value Does not Fall within the Expected Range" error is thrown while replying to a Discussion

I am using SharePoint Client Object Model (CSOM) to reply to an existing Discussion on a Sharepoint Online 2013 site using the following code SP.ListItem oListItem = SP.Utilities.Utility.CreateNewDiscussionReply(ctx,…
Piyush
  • 830
  • 8
  • 19
0
votes
1 answer

Get previous version file in provider hosted app with client object model

How do i get file of one of previous version using client object model. With code I am getting Microsft.sharepoint.client.FileVersion object as expected. But trying to do Web.GetFileByServerRelativeUrl(FileVersion.Url) fails. In server object…
Mandar Jogalekar
  • 3,199
  • 7
  • 44
  • 85
0
votes
2 answers

Access SharePoint online using client object model- Forbidden error

I tried to Create a new list item using client object model. I have created an asp.net application to do the task. It works if I pass the URL of SharePoint server which is installed in my machine. But if I give my SharePoint online URL it is not…
0
votes
1 answer

WCF hosted in window and client object sharepoint 2010 - impersonation

i have a WCF service hosted in a managed windows service. This WCF service communicate with sharepoint through the client object model in order to create, delete and update the document. My WCF service use a netTCPBinding with message security and…
0
votes
1 answer

Get Author name by AuthorId from Page properties using JS

I'm using Sharepoint 2013 JS Client Object Model to retrieve and process the list of Pages. For each page I collect information like title etc. Each page contains also AuthorId property, which I would like to use to retrieve author's name. How to do…
filip
  • 1,444
  • 1
  • 20
  • 40
0
votes
1 answer

Cannot get the document library url in the Client Object Model

I am using Sharepoint 2010. A document library has been created the Sharepoint portal. I understand it is recommended that the Library url should not contain any spaces. So initially it is created as PPCompanies. And then for the library name to be…
arame3333
  • 9,887
  • 26
  • 122
  • 205
0
votes
1 answer

Handle missing field during retrieval using SP Client Object Model

I am trying to query Sharepoint 2010 to get all items of a list using the Client Object model. One of the properties I try to retrieve is the DocumentId _dlc_DocId If the field is present on the list, the query works correctly and returns the data I…
coffeecoder
  • 725
  • 7
  • 22
0
votes
1 answer

SharePoint 2010 client object model, clear content type collection

I have an SP.ContentTypeCollection for a document library. I'm trying to add a selected one from the site's content types. I also need it to be the new DEFAULT content type for that library. Thus, I've copied the document library's existing types…
0
votes
1 answer

Keyword column is not being updated for Microsoft office files.

I am trying to upload a document in a Document library of SharePoint online site by client object model .net managed code. But keyword column in the document library is not being updated for microsoft office files only. it doesn't throw any error…
0
votes
2 answers

Sharepoint - Java Script - Get value from people picker column in a list

I have a People Picker column in my SharePoint List. I need to get all the values (names) from this column. I am using Java script code to get the data from SharePoint lists. My code is as below: Here “User” is the name of the column in the list.…
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

How can I retrieve a uploaded file's direct URL?

Hellu Everything is in the title. The user of my program can upload files to a SharePoint server, how can I provide him a link to open this file? Meaning, how can I get the URL to put in the link? Thanks in advance. Edit: Just to clarify, the File…
Kilazur
  • 3,089
  • 1
  • 22
  • 48