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

learn more… | top users | synonyms

4
votes
1answer
659 views

SharePoint 2013: Using JSOM, get a list of all sites user has access too

I was looking at the JSOM documentation, but couldn't find a nice way to spin through all site collection and sites to show a user what they have read access to. Is this possible using JSOM and a ...
4
votes
3answers
5k views

Query SP2013 Managed metadata term store

I was wondering if it is possible to query the Term Store via the REST API or Javascript Client Object Model in SP2013. I can't quite seem to work out the naming scheme for the REST API to discover ...
2
votes
2answers
498 views

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 ...
2
votes
0answers
31 views

unexpected response from server

I am using javascript to load data from list. But every now and then i get error Unexpected response from server Sometimes i get and sometimes i dont. I googled and someone suggested to free memory ...
1
vote
1answer
2k views

set multiselect lookup column using jquery

I have a Multi select Look up column which as you all know is a control with two list boxes and "Add or Remove" Buttons. The user populates the right-hand side of the control with some values by ...
0
votes
1answer
16 views

How to Retrieve the shared link of a file Programmatically

I am using C# to programmatically access files on our Office 365 SharePoint site using the Microsoft.Sharepoint.Client.dll. In one of our shared folders all the documents are Shared with anyone with a ...
0
votes
1answer
540 views

Cannot invoke HTTP DAV request. There is a pending query during OpenBinaryDirect

I've to move some items from one document library to an other one in a different site. I use object client model to do this My issue is having an exception while i'm trying to open the file and here ...
0
votes
2answers
45 views

New Folder of List not display in View

I'm using the following code to create new list folder: Folder newFolder = listCopyTo.RootFolder.Folders.Add("NewFolder"); clientContext.Load(newFolder); clientContext.ExecuteQuery(); After that ...
1
vote
1answer
476 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 ...
0
votes
1answer
626 views

How to create a new document from a Document Template using Client Object Model

I require to programatically create a new document using the Document Template URL of the document Library and this requires to be done using the Client Object Model. I also require to do this without ...
4
votes
3answers
3k views

Sharepoint 2013 Client Object Model file larger than 2 Mb exception

I am new to Sharepoint and Client Object model. I am stuck with a problem and not been able to fix the issue. I want to upload files more than 10 MB using Client Object Model in Sharepoint 2013. I get ...
1
vote
1answer
21 views

How to retrieve multiple choice items using Client Object Model?

There is a custom field in my list called "Solutions". The user can select multiple values for this field (they are in a set of checkboxes on the interface). I get all the other values in the list ...
0
votes
2answers
349 views

Notify item update by JavaScript

I created a popup window that updated the metadata information of my item. When the operation of updating is complete I would like to close my popup and show the notify alert. I succeed to close the ...
4
votes
1answer
2k views

System.ServiceModel.ServiceActivationException “A relative URI cannot be created because the 'uriString' parameter represents an absolute”

The client object model code in my application is throwing the following exception. How to solve it?. System.ServiceModel.ServiceActivationException: The service '/_vti_bin/client.svc' cannot be ...
0
votes
1answer
411 views

Exception calling “ExecuteQuery” with “0” argument(s): "The remote server returned an error: (400) Bad Request. CSOM SP13

I'm trying to add a page to my search centre in sharepoint 2013. Trying out cSOM too. Here is my code, I am getting a bug Exception calling "ExecuteQuery" with "0" argument(s): "The remote server ...
0
votes
0answers
30 views

Get Taxonomy Terms, GUIDs, Synonyms (Other Labels) into Array within a SharePoint Page (not App)

I am using the code below to get terms (Later I will push these into an array). This is based on this article: http://www.vrdmn.com/2012/12/working-with-taxonomy-and-javascript-in.html It is pushing ...
1
vote
3answers
784 views

How to create List and libraries with CustomSchemaXml property using SchemaXml with CSOM in sharePoint online2010?

How to create List and libraries with CustomSchemaXml property using SchemaXml with CSOM in sharePoint online2010???? I am using following Code... // Create new list for restore List Item from List ...
0
votes
0answers
85 views

Programatically Add user to a SharePoint Group C# CSOM SharePoint 2013

I am trying to programatically add user to a SharePoint Group. I have a function that takes two values: userName and groupName. I am able to pass a groupName and the function does input AD group ...
6
votes
3answers
7k views

How to Use ECMA CSOM to Set a Field of Type SPFieldUserValue

I have a JavaScript array containing the string representation of some usernames (domain\username format). Using the JavaScript CSOM, what is the best way to create a new item and add those usernames ...
11
votes
4answers
5k views

How to get List by Url using SharePoint 2013 CSOM

SharePoint 2013 CSOM API contains the following methods for accessing List object: ListCollection.GetById method - returns the list with the specified list identifier ListCollection.GetByTitle ...
2
votes
2answers
397 views

Setting SPWeb.AlternateCssUrl via CSOM or JS

According to this Microsoft Office 365 Blog post the SharePoint CSOM (.Net, REST, JS) has been enhanced to support setting SPWeb.AlternateCssUrl: ...
6
votes
4answers
9k views

How to traverse SharePoint Library in Client Object Model?

I have SharePoint Library and i want to traverse all folder and sub folder of it using client object model. Can anybody have solution ?
4
votes
1answer
527 views

Get Master Page Gallery via CSOM

How to get master page gallery via CSOM so that we would support language packs / we cannot use Lists.GetByTitle("Master Page Gallery"). So how to get list "_catalogs/masterpage"?
1
vote
1answer
486 views

How to get server datetime without postback using JSOM or services

My application page may be long time without reloading, and user changed system date and time. And I need to know datetime from server, not from client.
1
vote
2answers
53 views

How to get all the sharepoint 2013 site groups using C# client side object model

How to get all the SharePoint 2013 Site Groups using C# Client Side Object Model I am using VS 2013 on my laptop and SP 2013 is on the network I read that I have to use Credentials or equivalent ...
0
votes
1answer
797 views

Get a Content Type by Name (Title) using CSOM

I am applying a temporary fix to some CSOM code whilst a more permanent fix is given to me hence I want to create the equivalent of ctx.Web.Lists.GetByTitle("Contoso ...
0
votes
1answer
1k views

How to upload a file attachment to a new list item using Sharepoint Online remotely

I need to upload a file to a new list item in Sharepoint Online from a clientapp. The list exists allready, but I create new list items and tried to upload file as attachements. I tried it over CSOM, ...
0
votes
1answer
560 views

502 DNS lookup failed error when using SharePoint 2013 CSOM

I am facing an issue while using CSOM in SharePoint 2013. I have configured an alternate access mapping for our site to run on http://mycustomdoamin.net/ The site is running fine and I am able to see ...
1
vote
2answers
524 views

Sharepoint 2013 publishing page creation using Client Object Model

I am using SharePoint 2013. Is there any way I can programmatically create a page using ONLY th Client Object Model? Also notice that the page should be editable for further use.
0
votes
1answer
928 views

Client Context executeQuery() works in console app but returns null object when executed from CRM Server

I have the function GetDocumentLibrary which must return a libray from sharepoint site. When I execute it from a Visual Studio Console Application it works and return the library with all ...
0
votes
3answers
1k views

Identifying duplicate items in a large list (>250000 items)

I have a list with ~250,000 items in it and I know that I've a lot of duplicates which I need to identify then clear out. I don't want to write Server Side code so looking for a imaginative solution. ...
4
votes
1answer
1k 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 ...
2
votes
1answer
198 views

SharePoint 2013: JavaScript Object Model - Create an enterprise wiki page

I have spent a couple of days trying to fix this problem. Goal: - Click a button on an existing page that creates an enterprise wiki page in the pages library and adopts the default custom layout. ...
0
votes
1answer
828 views

How to change 'Modified By' column value when a new file is uploaded in SharePoint 2013 using Client Object Model?

I want to change 'Modified By' column value of a file that is being uploaded using Client Object Model in SharePoint 2013. The problem is that the version of the file is changing. Kindly help me. The ...
3
votes
3answers
8k views

How to get list by url using client object model?

Is it possible to get list by url using ECMA script client model? For example something like this: context.get_web().get_lists().getByUrl("Lists/MyList"); UPD!: Please, refer to this correct ...
1
vote
0answers
15 views

How to dynamically change the drawing path in Visio Web Access Web Part

I am wondering if there's any way to dynamically change the drawing shown by a visio web access web part. I have multiple drawings I want to show on a page based on what users click on the page. Any ...
0
votes
0answers
19 views

Sharepoint Calendar Overlay with CSOM

I have a requirement to add two or more calendar in one calendar view so we decided to use calender overlay concept in SharePoint. The problem is that we need to use client object model to add two or ...
1
vote
0answers
62 views

Get inner content of Content editor web part Programatically using CSOM C#

I need to Access Web parts Content Property but it is not available in Web Part Properties when I tried with Client side object model C#. Please find below reference links for detail information. ...
1
vote
3answers
904 views

Disable List Event Handler in the Client Object Model

I have a client windows application that is uploading many rows of data to a list. However, I don't want the event handler on the list to fire while rows are being added via the windows application. ...
1
vote
1answer
30 views

Insert SharePoint 2010 list item type Multiple line text using C# and Client side object model

How do I insert a Multiple Line Text in a table column with nvarchar(50) How do I insert a Number into a column with int ClientContext context = new ClientContext("http://sp2010"); Web web = ...
0
votes
1answer
480 views

Dynamically create metadata and associate it with File using Client Object Model

Is there any way to dynamically add metadata in the upload file. I am using the following code in this regard. File uploadFile = context.Web.GetFileByServerRelativeUrl(location); //check out to make ...
1
vote
1answer
162 views

Create Calendar powershell CSOM

How would I go about creating a calendar in powershell using CSOM. I have created a custom list before, using this : Add-Type -Path 'C:\Program Files\Common Files\microsoft shared\Web Server ...
7
votes
1answer
143 views

Code editor (IDE) for CSOM developement - Sharepoint

I am searching for a code editor with which I can connect to SharePoint library, like I can open a complete library in the editor, edit, save changes, which will be reflected in the library. ...
3
votes
2answers
98 views

Get all subsites and rootweb of a site collection using JSOM

I have used the following code from Most efficient way to get all sub sites under a site collection/sub site using JSOM? function getAllWebs(success,error) { var ctx = ...
3
votes
1answer
957 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
1answer
953 views

How to open file in adobe reader using command line without checkout from Javascript?

I am working on print functionality. I am printing the PDF files (uploaded in SharePoint Library) using Adobe Reader command line from javascript. I am using ActiveX object to call the cmd. refer ...
0
votes
1answer
18 views

How to upload a file in a folder and set it's title?

I am uploading files on a SharePoint folder with this code: var clientContext = GetClientContext(); var folderName = "Folder"; var fileName = @"C:\Users\user\Desktop\file.pdf"; folder = ...
0
votes
1answer
36 views

Error:Access denied. You do not have permission to perform this action or access this resource

I am retrieving items from SP lists. But when I try to deploy my solution through VS 2013 it says Access denied. You do not have permission to perform this action or access this resource. ...
0
votes
0answers
63 views

Sending E-Mails in On-Premises environments? (CSOM)

I'm working on an E-Mail function for a SharePoint 2013 provider-hosted App. The code I'm currently using: // Prepare the E-Mail parameters EmailProperties properties = new EmailProperties(); ...
0
votes
0answers
21 views

Reading KPI Indicator Status list values using JavaScript Client Object Model

I am wondering if there is any way to read a KPI Status list items with their KPI status values using JavaScript. So far I was able to get to those items's regular fields like ID and Title using this ...