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

How do you get a count of listitems of a certain content type without fetching all items

So we had a piece of code that set a few elements to display the count of all items in various lists. Now a requirement has been added that only items of a certain content type can be counted. However, Including a caml query as seen below (The old…
0
votes
1 answer

Edit files with SharePoint 2010 Client Object Model

I'm new to SharePoint and using SharePoint Foundation server 2010 to save files using client object model. The application will list the files in the server using MVC4 UI. To retreive the files and folders I use SharePoint 2010 client object model.…
manura
  • 31
  • 1
  • 6
0
votes
1 answer

Upload file with meta data and checkin to sharpoint folder using Client Object Model

Hi I'm trying to upload a file to sharepoint 2010 using the client api with meta data and also checkin the file after I'm done. Below is my code: public void UploadDocument(SharePointFolder folder, String filename, Boolean overwrite) { var…
vince anon
  • 73
  • 1
  • 8
0
votes
1 answer

Retrieve explicit values from document library

I'm trying to pull some fields from my Document Library. Right now, I can retrieve these 2 fields to return the correct values, in my success function. while (listItemEnumerator.moveNext()) { var oListItem = listItemEnumerator.get_current(); …
John
  • 55
  • 1
  • 10
0
votes
1 answer

SharePoint Client Object Model - How to read a list with the same name in multiple sites

My problem is the following: I have a list under the site collection root representing projects called 'Project Register'. Each item in that list represents a project where I am storing the project name, status, URL and some other properties. The…
0
votes
1 answer

How do I get the current web using SharePoint client object model?

I am using the SharePoint client object model to create a web part. I have a list on the parent site. This list has a field that is a choice field, with choices for all the subsites under the parent site. I am building a web part that will display…
wjervis
  • 15
  • 5
0
votes
1 answer

Retrieve the name of a document which saved in a SharePoint library using Client Object Model

foreach (SPListItem item in listitems) { AttachmentControlTemplate atch_templt = new AttachmentControlTemplate(countr); atch_templt.lnk_btn.Text = item.File.Name; atch_templt.lnk_btn.OnClientClick…
Nera
  • 117
  • 1
  • 1
  • 8
0
votes
2 answers

Retriving the url of a Hyperlink column which is in a sharepoint list, using Client object model

function IfModuleSucceded(sender, args) { var existingCount = existingItems.get_count(); var existEnumerator = existingItems.getEnumerator(); while (existEnumerator.moveNext()) { var…
Nera
  • 117
  • 1
  • 1
  • 8
0
votes
1 answer

How to get display name from created by field in sharepoint client object model?

In my sharepoint javascript code, I am retrieving items from a list. I used a camel query to download specific fields. One of the fields was created by (person who created the item). When I loop through the items, I get the value of the created by…
omega
  • 40,311
  • 81
  • 251
  • 474
0
votes
2 answers

SharePoint 2013 APIs

Looking for somewhere that describes the differences between the SharePoint 2013 APIs, specifically I'm wondering what APIs I can use to create databases and site collections. As far as I can tell, only the Server API or Powershell will let me do…
Dan
  • 1,101
  • 1
  • 9
  • 30
0
votes
1 answer

Javascript to Read/Count Sharepoint 2010 List Items

I am having a lot of trouble with this. Essentially, I am trying to count the number of times Decommission appears in a particular list column. From what I can tell, the javascript is correct, but it doesn't work. Can anyone provide some guidance?…
0
votes
2 answers

Sharepoint 2013 client object model authentication

I need to perform a Sharepoint 2013 client object model authentication. http://vrdmn.blogspot.com.au/2013/01/authenticating-net-client-object-model.html I'm using a shared hosting service (http://www.arvixe.com/) where the Sharepoint client…
chamara
  • 12,649
  • 32
  • 134
  • 210
0
votes
1 answer

Delay in receiving response or no response when using ExecuteQueryAsync

I am using the ExecuteQueryAsync on multiple lists to fill data into a List. Once all the responses are received, I bind the data onto my Silverlight Application. ExecuteQueryAsync could ideally go into success or failure. I…
Abishek
  • 11,191
  • 19
  • 72
  • 111
0
votes
1 answer

Current List view in SharePoint 2013 custom action

I am trying to create a custom list action for SharePoint (Office 365) and I need to get current list view. However if I add ribbon action I have some problems to find currently selected list view. My trials: a) It would be the best to have some url…
trigras
  • 515
  • 6
  • 18
0
votes
1 answer

Windows 8 App using COM dlls of Sharepoint gives error “Cannot resolve Assembly or Windows Metadata file 'System.Web.Services.dll'”?

I have created a sample app using Windows 8 C# XAML to get site info of SharePoint 2010 using COM Dlls. I have added reference of: C:\Program Files\Common Files\microsoft shared\SharePoint Client\Microsoft.SharePoint.Client.dll C:\Program…
1 2 3
18
19