API for interacting with SharePoint from .NET, Silverlight, and JavaScript.

learn more… | top users | synonyms (1)

3
votes
0answers
19 views

change NavigateForFormsPages value to true using CSOM

I'm searching for a way to change NavigateForFormsPages property using CSOM but no luck till now. Anyone has idea to do it using CSOM
3
votes
0answers
124 views

SharePoint Client Object Model not returning hidden folders in document library

I am using the SharePoint Client Object Model to get information from a SharePoint 2010 document library to be able to delete old htm-files located there. The problem is that these htm-files have ...
2
votes
0answers
18 views

Client WebPart (apppart), I need to explain some settings

Property element <Property xmlns="http://schemas.microsoft.com/sharepoint/" Name="Text" DefaultValue="Text" Multilingual= "true" | "false" PersonalizationScope="user" | "shared" ...
2
votes
0answers
117 views

Changing the Modified Date of a List Item using the SharePoint Client Object Model (C#) with Contribute Permission

I have a small snippet of code that I use to update the Modified Date of a list item and it works great for users with Full Control permissions. However, for users with just Contribute access to the ...
2
votes
0answers
73 views

Get distinct values via mechanism used when clicking “Show Filter Choices” on a Sharepoint list using Javascript

As many other people on this site seem to need, I'd like to get an array (or equivalent) of the distinct values in a field for a list. The canonical way of doing this is to retrieve the entire field ...
2
votes
0answers
93 views

How to access Page layouts and site templates using CSOM?

How to access Site Settings > Look and Feel > Page layouts and site templates using CSOM? The page allows end users to change these settings: Subsite Templates: subsites can use any site template ...
2
votes
0answers
121 views

Change content type order via Javascript/ECMAscript

In my SharePoint-hosted app, I use javascript to apply a content type called "Order" to a list in my app. When users click "new item" to upload a document, I want that document to derive from my new ...
2
votes
0answers
211 views

ssl certificate error when using Client object model

I wrote an app that gets information from some Sharepoint 2010 lists and displays it to the user. It works fine on my development machine.But when I copied the exe to another desktop machine i got the ...
2
votes
0answers
168 views

Dynamically Setting a List View on a WebPart Page

I have been unable to load a page showing a dynamicaly selected View. I can not just display the List itself (Although this would allow me to specify the View in the URL) because I need to modify ...
2
votes
0answers
132 views

Sharepoint Online - How do I retrieve document's social tagging information

Is there any way I can retrieve documents' social tags and notes using Client Object Model? I'm on the client side so I don't have access to Server Objects. I've been searching all around but found ...
2
votes
0answers
702 views

Url to an item with Client Object Model

Regarding my question, at this moment i'm writing some client object model code and I can't find a way to retrieve create make an url ... My question now is: How can I create an url to an item? I ...
2
votes
0answers
601 views

Managed Client Object Model NavigationNode Url Property Incomplete

It seems the Client Object Model is stripping out the "query" part of a URL stored inside the NavigationNode elements. I am wondering if this is a bug or perhaps I am doing something wrong? Consider ...
1
vote
0answers
76 views

CSOM caml query list view lookup threshold

I have a list with about 15 managed metadata columns in it. Now I want to query that list using CSOM. I don't want to retrieve all the columns values so I limited the column values retrieved by using ...
1
vote
0answers
36 views

Check highest priority permission to access folder or file

if any folder or file has more than one permission(e.g. read and full control) for any user or group to access it if i check that permission in code how to check highest priority if folder or file has ...
1
vote
0answers
16 views

Is it possible to query the status of a service application using the client object model?

My goal is to query the statuses of services and service applications from a remote machine. I don't want to actually interact with the services, all I need is the "Started"/"Stopped" status you get ...
1
vote
0answers
34 views

How to convert TimeZoneInformation into TimeZoneInfo

I need get TimeZoneInfo object that represent timezone on SharePoint Server. In client object model I found object Web.RegionalSettings.TimeZone (Class TimeZoneInformation). How I can convert ...
1
vote
0answers
120 views

Enterprise Keyword not updating in SharePoint 2010 using client object model

Tried the following, it didn't give any error, but that column wouldn't update, while the Title did. please help me to resolve this problem using (Microsoft.SharePoint.Client.ClientContext ...
1
vote
0answers
455 views

Javascript in CEWP queries a list every time dropdown is changed on NewForm.aspx not working

I am trying to apply javascript in a CEWP to a NewForm.aspx page of a simple custom list. Basically, the idea is to auto-populate a text field on the new item form whenever a dropdown column's ...
1
vote
0answers
114 views

Default.aspx (Reference Error: AddItem is not defined)

So I'm trying to push through learning how to code in the SharePoint environment. I created a script in a text file that i'm calling through a content editor webpart. When I debug the page using ...
1
vote
0answers
152 views

using sharepoint OOTB DragDrop.js library in Custom webpart

I implemented drag and drop file upload functionality with using REST api in my webpart . But i found an OOTB sharepoint dragdrop.js library which has numerous methods to create drag drop control. ...
1
vote
0answers
85 views

Add an app from the corporate catalog using client object model

I want to install an app that is in my corporate catalog using the client object model. I've found that I can install an app when I have the app locally. I'm then able to load it in as a stream and ...
1
vote
0answers
129 views

While creating folder in sharepoint using C# takes much time

Yesterday I have programmed to create folder in SharePoint 2010 using C#. It's fine that code create folder but the problem is that while creating a folder it takes 5-10 seconds. And i think it's too ...
1
vote
0answers
79 views

Sharepoint 2010 - get List IRM properties with client object model

This link here shows you how to get the IRM properties of a list with the sharepoint sdk: ...
1
vote
0answers
205 views

SP2010 JSOM: error when trying to get all users of specific group using javascript

having trouble getting users return from specified group using javascript per this on MSDN var siteUrl = '/sites/MySiteCollection '; function retrieveAllUsersInGroup() { var clientContext = new ...
1
vote
0answers
160 views

Update value of column in Form Library using CSOM

I want to update the value of a promoted field from infopath form by csom code. I have written the following code but it does not seem to work. Please guide to know what is incorrect. function ...
1
vote
0answers
218 views

How to get the distinct values from sharepoint list using GetListItem and bind to dropdown?

I am Passing the XML for getting List item and binding to dropdown. Here i have shown the code.. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
1
vote
0answers
110 views

how to update Document in doc set

I've been trying to update the file name of a document inside of a doc set. I continually get either a "Invalid data has been used to update the list item. The field you are trying to update may be ...
1
vote
0answers
75 views

Calling multiple times SaveBinaryDirect result in Socket Exception

I've been using Client-Side Object Model in C# for Sharepoint2010 for a few weeks, and I've tried uploading files with File.SaveBinaryDirect and by adding the file to the list and then calling ...
1
vote
0answers
326 views

Is it possible to programmatically add page items to Enterprise Wiki using CSOM or REST?

Like a lot of us I'm green when it comes to SharePoint development. I've been tasked with moving MediaWiki content over to a SharePoint Enterprise wiki. At this time I do not have access to the server ...
1
vote
0answers
91 views

Change web theme via client object model?

SPWeb.ApplyTheme() doesn't seem to exist in the client object model. Is there an equivalent? By the way, this is for SP2010.
1
vote
0answers
42 views

How to create object of type SP.ListItemFormUpdateValue

How can i instantiate object of type SP.ListItemFormUpdateValue and initialize it to a List field so i can read the field values on client side? If this is not posible, how can i read a value in a ...
1
vote
0answers
284 views

how to update properties of item in doc set with client object model

I've been able to create doc sets and upload files to it with the client object model. I am having difficulty updating the properties of the files in the doc sets. Here is what I've tried: public ...
1
vote
0answers
100 views

Will content type names change with locale? (Sharepoint 2010, client object model)

I'm making a content type/id hashmap. The relevant part of the code is something like this (js): contentMap[content.get_name()] = content.get_id().toString(); I'm worried that the name will change ...
1
vote
0answers
830 views

How to get a client context for App in provider-hosted Apps?

I use a provider hosted Apps, so need to work with an App Web and Lists. Could anybody provide a code snippet to get ClientContext() of the App? Can I do something like this? Uri appWeb = new ...
1
vote
0answers
82 views

COM BCS model programmatic creation methods

Following the source code found here: http://code.msdn.microsoft.com/office/Creating-SharePoint-2010-ad694d17 I've managed to create the Create, Update and Delete method, but only the Delete ...
1
vote
0answers
140 views

SPFieldUrl does not work

I have an external list, items in that list have a field that contains an url. I want to show this url as a link in sharepoint form. I found this example and defined in my Creator and Updater methods ...
1
vote
0answers
99 views

Getting column information from a sharepoint 2010 list

I'm trying to figure out how i can get information about a column in a Sharepoint List, like what type of column it is (single line, number, date etc...) and whatever additional column info that ...
1
vote
0answers
42 views

How add personal list for all users

I want to integrate Sharepoint with my external system. Sharepoint should load tasks from my system and show them in the list on user personal page. Integration should be done using Sharepoint ...
1
vote
0answers
66 views

Upload a custom template using client object model

I am trying to upload a new custom template to the Template file repository using the Client object model. But I couldn't any provision to add a template as such. So is there any way to do it. Thanks ...
1
vote
0answers
110 views

How to Reconcile External Data and Multiple Values for a List Item?

I am currently developing a solution that requires me to integrate a SharePoint 2010 list (generic list type) with items from a SQL Server database. In addition to this hypothetical field being ...
1
vote
0answers
124 views

SharePoint Online External Sharing Feature - Available through API?

I have a case where we would like to create a web part for use in SharePoint Online where users can request to share a site with an external vendor. We would like to automate the process of Sharing to ...
1
vote
0answers
228 views

Validate list item with javascript API

I want to develop a custom datasheet view to edit a list. I add item through the javascript API. The problem is that the service doesn't control fields value. For example : - I add an item with a ...
1
vote
0answers
350 views

List Item file attachment using ECMAScript Object Model

How to simply upload & attach file to listItem using Javascript? And how to get/download attachments.
1
vote
0answers
70 views

Is it possible to use https with Client Object Model in Silverlight

I found here this QA: Connect client object model to https url which mentions this article how to do it in full .NET client object model. That would be great if the class ServicePointManager (MSDN) ...
1
vote
0answers
423 views

Get Permissions with client object model

i want to add a permission on a folder who's inside a document library with javascript/jquery/client object model. The problem i have is, its a custom permission level created when some feature is ...
0
votes
0answers
17 views

Update a rating scale field of survey list using JavaScript

I have created a survey list which has 3 columns. One column is of type rating scale with value 1-5 . Using JavaScript I'm able to update the first two columns. But not able to do so for the rating ...
0
votes
0answers
30 views

SharePoint Online and execute query async

The code below is running in a Silverlight XAP which is using the SharePoint Silverlight client object model. The application logical flow is the following: first, a file is uploaded in extension ...
0
votes
0answers
25 views

Extracting blog posts with images using Client Object Model

I'm extracting blog posts from SharePoint 2010 with the managed client object model in order to migrate the data onto another platform. I can get both pictures and posts from the blog but I can't find ...
0
votes
0answers
18 views

Batch retrieve document information via c#

Note: Using Microsoft.SharePoint.Client Greetings folks, I've written a system for automatically updating some tools we use (tools are excel workbooks, but immaterial to discussion). Part of this ...
0
votes
0answers
128 views

SharePoint 2013 BCS External Data Column

How do I return all entities without using entity.GetFilters() ? I have the following and I can only seem to produce a FilterCollection. I would much rather have just all the enities because i am ...