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

learn more… | top users | synonyms

0
votes
0answers
14 views

People Picker in Client Object Model 2010

So I am trying to build an equivalent to a People Picker in Windows.Forms Application. Since 2010 does not have Web.SiteUsers like 2013 does I had to write it like this. public UserPicker(string ...
0
votes
0answers
8 views

Access denied error opening SharePoint hosted app in dialog in Internet Explorer

I am trying to make an app that opens in a new dialog but am unable to use it in Internet Explorer in a new dialog. It opens perfectly fine in a new page but I am getting an access denied error in ...
0
votes
0answers
14 views

how to get client context in a external js file

I have a SharePoint event list where start date and end date needs to be formatted to clients time zone. I am thinking of getting the regional settings and then converting the time. I have to write ...
1
vote
0answers
17 views

select login name items from list client object model

I don't get the title, or any item in the get_Vote_onSuccess function see below the code: var ctx; var collListItem; var web; var loginUser; $(document).ready(function () { ...
0
votes
0answers
30 views

How to retrieve webpart xml-definition programatically

I have a Custom Webpart deployed in the Site, to which I need to retrieve the XML definition programmatically using Client side object model, can anybody help? EDIT: I used the following code. ...
0
votes
1answer
25 views

How to verify feature staus (enabled/disbaled) using client object model in SharePoint online?

I am working on "Retrieving activated features of specific scope". I have written following code. ClientContext context = ContextManager.GetClientContext(cred, siteUrl); Site site = ...
0
votes
1answer
26 views

Client Object Model checking permissions on Webs

I'm currently writing a SharePoint hosted app that displays a treeview of a site collection on a site that is not the current. To do this I have an admin account that has permissions over both of ...
0
votes
0answers
38 views

Value does not fall within the expected range - CSOM

What is the reason for the below exception message in CSOM code which I received when querying for data from SharePoint Online? Value does not fall within the expected range. Code sample: public ...
0
votes
1answer
36 views

Load all fields for a specific ListItem using CSOM

I want to load all FieldValues for a specific ListItem ForExample public ListItem GetItemById(List SPList, int id, string[] fieldNames) { using (Ctx) { ...
0
votes
1answer
24 views

Get Item ID not working

I'm trying to get the ID from a SharePoint list, however I cannot obtain it. ctx_load(Include(ID)) does not seem to work. When I call items.get_id(); it returns undefined. Also, the items object is ...
1
vote
0answers
13 views

SharePoint newly created Group's description is not fetched using CSOM

I use below code to get the SharePoint Site group's data. Description of the default groups like owners, visitors were fetched correctly but the same code returns null for newly created group's ...
1
vote
1answer
30 views

Cannot contact site at the specified URL https://www.server.com:1234/sites/test/

I want to create a list item using SharePoint Client object model (SharePoint 2010). string siteURL = @"https://www.server.com:1234/sites/test/"; using (ClientContext spcontext = new ...
0
votes
0answers
26 views

How to get user profile properties when getting users in javascript CSOM in SP2013?

I download users like this, but the problem is I have to make 1 request to download all users, then 1 more request to download the properties of the users. So that's 2 requests. I want I specify the ...
0
votes
0answers
27 views

How to use CAML with CSOM for getting users in SP2013?

I want to get all the users in CSOM SP 2013 in javascript, but I don't want all users. I want to filter them by CAML. This is what I have so far which filters by first name is Tom, but the CAML is not ...
1
vote
0answers
14 views

How to search in custom metadata columns of document library using QueryService object

I have a SharePoint Library 'Contact' In this library i have created some custom column. Have gone through all the steps of 1st Full Crawl, automatic generation of crawl properties, creation of ...
0
votes
2answers
109 views

Get User id from people picker client side

I have created people picker on client side using SPpeoplepicker.js. $("#peoplePickerDiv").spPeoplePicker(); Everything works perfect all user display in people picker and i can select multiple ...
-1
votes
0answers
31 views

How to get all users filtered by role in CSOM Sharepoint 2013?

In my SP2013 environment I want to write javascript code that uses CSOM (client object model) and retrieve all users, but filtered by role. Does anyone know how to do this? I found this Get all users ...
0
votes
0answers
7 views

ServerObjectIsNull not working correctly?

I'm very confused about the usage of ClientObject.ServerObjectIsNull. In our current project we use this property very often to validate if an artifact is already existing on server side. Until now it ...
0
votes
1answer
60 views

How to get Sharepoint 2013 variation URL?

I want to create a toggle button for variations, so that when I am on the en or fr page, and I click the button it takes me to the other page. But I can't just change the en to fr, for example, ...
0
votes
3answers
55 views

How to update list items using JavaScript Object Model in SP 2013

I am trying to update list item's value through JavaScript object model in SP 2013. When I call set_item('fieldname','mvalue'), it does not throw any error, but it fails to update. How to ...
1
vote
0answers
29 views

Bulk Create folders in document library using client object model

I want to create folder on SharePoint document library using client object model (C#). Below is the code which does that. ContentTypeCollection listContentTypes = list.ContentTypes; ...
0
votes
0answers
23 views

Default Service account in SharePoint

What does the default service account property means in the SharePoint farm? Also, what is the difference between default service account and farm administrator account, if both are different? I'm ...
0
votes
0answers
50 views

Set client side choice field to stored value via JSOM

I am using Angular on top of SharePoint for an application. One of the fields I have is a choice column. I am able to get the values and store them in SharePoint/accessible via REST in my create form, ...
0
votes
0answers
10 views

The given key was not present in the dictionary while adding RoleAssignment To Group

My snippet should get a Group from a production SC and copy it to Test(same) SC. Until this point, everything works like a charm, group is created, Owner set and People copied to the with no ...
0
votes
2answers
37 views

ListItem.get_id() return “-1” after adding value in custom list

I am trying to add value in custom list of SharePoint using COM and Javascript. Code work file but i can't see any item added in list. also i got id of recently added item is "-1" This is my code. ...
2
votes
1answer
72 views

Use a colleagues' browser settings to detect their time zone and update the date format and time to reflect the time in their time zone

In the Events web part, the date displayed should reflect the date for the event based on the user’s time zone. Can this be achieved by client side This is the sample events webpart: I have till ...
0
votes
0answers
10 views

How to connect to ping federate site(sharePoint 2010 sites) from a tool which runs on windows machine?

We need to sync two sites. One is intranet SharePoint 2010 site and other is external SharePoint 2010 site. The external site uses pingfederate authentication. We need to run a tool to synchronise ...
1
vote
2answers
65 views

Get SharePoint List data & Bind to Gridview by Client Script

I need to get data from SharePoint List using Client Script (JavaScript) and bind same data to GridView using Client Script (JavaScript, JQuery, etc...) kindly suggest me on this.
0
votes
0answers
34 views

How to get Groups RoleAssignments with COM

I'm trying to retrieve Roles Assignments and SPRoleDefinitionBindingCollection from a Group .Probably, I'm using the wrong method to that. The RoleAssignment groupRoleAssignments = ...
1
vote
0answers
50 views

How to load Group.Owner properties using CSOM

When I try to load owner = TargetSite.Web.EnsureUser(grp.Owner.LoginName); I got the exception : The property or field has not been initialized. It has not been requested or the ...
1
vote
2answers
32 views

Creating custom content organizer rule using Client Object Model in Sharepoint 2013

Can we create custom content organizer rules using Client Object Model in Sharepoint 2013? If no, then what way of doing it should be followed?
0
votes
0answers
13 views

Client Object model does return all Groups

I'm trying to build a Client App The retrieve all groups By client O M .But I notice that it doesn't return all groups into my site. I have tried build the same code Server Side on Machine server ...
1
vote
1answer
31 views

Client Object Model RoleDefinitionBindingCollection.Remove not working

I'm using the Client Object Model and trying to remove a specific RoleDefinition from a RoleDefinitionBindingCollection in a RoleAssignment. This is the code I'm using: Web web = context.Web; ...
0
votes
0answers
39 views

Disable “Require Use Remote Interfaces permission” using power shell

I want to disable "Require Use Remote Interfaces permission" of web application using power shell script.
0
votes
0answers
20 views

Can I export Web Part Content to a PowerPoint presentation using Client Object model?

I'm trying to develop a Client Side webpart which contains an export button. (PPT Icon). On clicking the content from the Web Part should be saved as a powerpoint presentation in the local computer. ...
0
votes
0answers
21 views

Improve performance in AddExistingContentType

I came into a situation, where I wanted to add a list of Content Types into a Document Library by using client object model. Code fragment var contentType = contentTypeCollection.FirstOrDefault(ct ...
2
votes
1answer
35 views

JSOM - Promise method on SharePoint 2010 site

I followed Vladim's suggestion in post and it works great on SP 2013 site but not on a SP 2010 mode site in the same farm. I have used the exact same code that works on the 2013 site but I get the ...
0
votes
1answer
59 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 ...
2
votes
0answers
68 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 ...
0
votes
2answers
51 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
67 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
0answers
83 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 ...
0
votes
0answers
452 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 ...
1
vote
2answers
180 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 ...
1
vote
0answers
40 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
45 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
179 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
1answer
133 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 = ...
7
votes
1answer
184 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. ...
0
votes
1answer
26 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 = ...