API to interact with SharePoint data remotely from script that executes in the browser

learn more… | top users | synonyms

5
votes
1answer
1k views

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 ...
4
votes
1answer
1k views

Programatically get ListItem by version using cleint object model Sharepoint 2010

I have a senario where i have to move all my datas in a sharepoint 2010 list (name= "VersionTestList") to SQL server database. Since versioning is enabled in the list i have to move the previous ...
4
votes
1answer
859 views

Get items from current view/filter in Sharepoint 2010 - using client object model

How can I get just the items in the user's current view/filter? Using Sharepoint 2010 Client Object Model (i.e. Javascript/ECMAScript). A user could select a view that shows a subset of the items ...
3
votes
3answers
11k views

Updating Field Value in SharePoint Using Client-Object Model

So I am trying to create a method that is essentially used to change the value of a field in SharePoint. This is what I have so far... static String fieldName1 = "Title"; static String fieldName2 = ...
3
votes
2answers
7k views

Sharepoint 2010 client object model with camlQuery - file download but no content / 0 byte

I'm trying to download a txt file from a subfolder within a folder in a document library. I'm using camlQuery to achieve this. Unfortunately, i get no content of the txt file. It has 0 byte. public ...
2
votes
4answers
1k views

Namespace 'SharePoint' does not exist in the namespace 'Microsoft'

So I am starting to learn C#, like literally just started learning, and coming from a Java background, it doesn't look too bad. However, I have a question. I am following THIS tutorial on using the ...
2
votes
3answers
4k views

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 ...
2
votes
2answers
1k views

Problem With Uploading Large Image File to SharePoint

so I have a script that essentially iterates through a bunch of delimited text files and uploads the images from said files to a SharePoint site. It works great, expect with one minor problem, I have ...
2
votes
4answers
4k views

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 ...
2
votes
1answer
678 views

Create Document Library using Client Object Model

Just a quick question, is it possible to create a Document Library using the Client Object Model in SharePoint 2010? I know you can create lists etc. Am I right in saying that a Document Library is ...
2
votes
1answer
807 views

Sharepoint Client Object Model query filter not working

I am using the client object model to query a record in a list. It filters by the Title which is unique so I would expect it to only return one record but it is returning the entire list. Here's the ...
2
votes
1answer
541 views

Returning Guid of newly created item in Sharepoint Library

I am using the method File.SaveBinaryDirect in Microsoft.SharePoint.Client to insert new documents in a Sharepoint Library. just wondering what is the most effective way of getting the Guids of ...
2
votes
1answer
2k views

Creating a SharePoint 2010 page via the client object model

I am attempting to create pages in a Sharepoint 2010 pages library via the client object model but I cannot find any examples on how to do it. I have tried two approaches: The first is to treat the ...
2
votes
2answers
198 views

How to convert string to Color in SharePoint Client Object model for silverlight?

I need to convert a string which has the name of a color (e.g. "Red") to an object of System.Windows.Media.Color. I am using the following code: using System.ComponentModel; TypeConverter tc = new ...
2
votes
1answer
1k views

Passing args in ExecuteQueryAsync method.

I have Silverlight app, which has some combo boxes, which I want to fill with fields names from SharePoint list. Every ComboBox can have different fields from this list, e.g. ComboBoxA holds user ...

1 2 3 4 5 7
15 30 50 per page