API to interact with SharePoint data remotely from script that executes in the browser
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
694 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
9k 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
0answers
924 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 ...
2
votes
3answers
633 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
1answer
5k 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
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
3k 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
759 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
455 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
2answers
183 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
911 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 ...
2
votes
0answers
605 views
Sharepoint 2013 users which are programmatically added using Client Object Model cannot contribute to document library
I have a problem with user permission of users which are programmatically added to Sharepoint 2013 group using Client Object Model. The web application allows anonymous, but I also have a document ...
2
votes
1answer
561 views
How to impersonate using silverlight client object model?
I am developing silverlight web part for sharepoint 2010 in C#.In silverlight client object model the sharepoint 2010 takes the current user credential by using the following statement
ClientContext ...
1
vote
3answers
3k 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 ...