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

clientaccesspolicy.xml in SharePoint online with Office 365

Is it possible to place clientaccesspolicy.xml file into site root for the SharePoint Online, which is part of Office 365 subscription? The point is to use Silverlight CSOM from a Silverlight Application running in another environment (on-premise,…
astaykov
  • 30,768
  • 3
  • 70
  • 86
0
votes
1 answer

using client object model sharepoint to get date fields

Ok. this is not just a simple list. It is publishing pages library, each page is based on publishing page layouts and contain various fields like Start Date, End Date, Start Time, End time etc..(it is a publishing page for a school Event ). There is…
0
votes
1 answer

Cannot create site in different web application - Silverlight Client Object Model

I am developing a Silverlight application. It interacts with SharePoint 2010 using SharePoint Silverlight Managed Client Object Model. One of the application functionalities is to create a SharePoint 2010 site. If the provided URL of the site that…
Boris
  • 9,986
  • 34
  • 110
  • 147
0
votes
3 answers

How to make the button disable permanently?

I am developing a Silverlight web part for Sharepoint 2010. I have a button in a datagrid as follows
Shailesh Jaiswal
  • 3,606
  • 13
  • 73
  • 124
0
votes
1 answer

How to retrieve the maximum date and minimum date from Sharepoint server 2010 using client object model?

I am developing silverlight web part. I have a one List Entry log. In this list I am storing all the entries of basic information. All the entries are saved successfully. Now I want to retrieve the maximum date and minimum date on which these…
0
votes
1 answer

How to convert the datetime on server to local time?

I am developing silverlight web part. So I am using the client object model.I am saving some data from my silverlight application to the sharepoint. The date data is stored properly. When I am trying to retrieve that data the date is changed…
Shailesh Jaiswal
  • 3,606
  • 13
  • 73
  • 124
0
votes
1 answer

Querying Multiple Site Collection using Client Object Model without ClientAccessPolicy.xml

Am working on a Silverlight integration with SharePoint. I use the Client Object Model to fetch information from list of multiple site collections. To do this successfully, I currently use the ClientAccessPolicy.xml for the Client Object Model to…
Abishek
  • 11,191
  • 19
  • 72
  • 111
0
votes
0 answers

Finding site and web from URL using the SharePoint client API

What would be the best approach for finding out the site and web if all we have is a URL? The problem is, it can be multiple things: https://foo.bar/Library/file.png: a file living in the https://foo.bar/ site and the /…
Ricardo Peres
  • 13,724
  • 5
  • 57
  • 74
0
votes
2 answers

get a list of listItem.fieldValues Client object model Sharepoint 2010

I'm building a Sharepoint 2010 export tool for back up reasons (a bit like the filemanager from Metavis). When downloading a file to local disk I need to back up the metadata associated with the document. Which I will store in a csv-file. My first…
Sigur
  • 317
  • 1
  • 3
  • 12
0
votes
1 answer

Windows Application Sharepoint CSOM

I am creating a windows form application in which I am supposed to take the share point url from the user by using a textbox and get the username and password also from the user and check the connection to the site if it is successful or not and…
0
votes
2 answers

Search for all documents in a site that end with a specific extention using Sharepoint 2010 Client Object Model

I'm absolutely new to Sharepoint programming, so I need a bit of guidance on how to get a list of all documents that exist within a Sharepoint site who's extension matches a value being passed in. Background: As part of a merger, millions (7TB) of…
The Evil Greebo
  • 7,013
  • 3
  • 28
  • 55
0
votes
1 answer

GET data from SharePoint on-premise and POST data to SharePoint Online

I need to GET data from SharePoint Server 2019 (On-premise) list and then I need to add that data to the SharePoint Online list using CSOM. I have found the below link to get data from SharePoint Server (On-premise)…
0
votes
1 answer

Sharepoint COM works from Silverlight but not from WPF

I'm running into an interesting situation. I need to access a SharePoint site asset library from both a WPF application and an Silverlight application. My Silverlight application is working 100%, but my WPF application gets a (500) Internal Server…
0
votes
1 answer

How to Reduce Congestion When Uploading Images to SharePoint

So I have created the following script: class spImageUpload() { private static System.Collections.Generic.List keywords; private static NetworkCredential credentials = new NetworkCredential(username, password, domain); …
0
votes
2 answers

SharePoint 2010 Client Object Model + set the value of a multiple lookup field with Javascript

I'm trying to update a list item with the SharePoint 2010 Client Object Model and Javascript. The item I am trying to update has a Multiple Value Lookup field. I can successfully set this field, but only with one value. Does anyone know how to…
Tom
  • 130
  • 1
  • 5