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

learn more… | top users | synonyms

0
votes
1answer
31 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
25 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
14 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
16 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
11 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
8 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
25 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
0answers
67 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
8 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 ...
0
votes
2answers
21 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
19 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
31 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 ...
0
votes
1answer
14 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
11 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
29 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
23 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
19 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
27 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
38 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
52 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
53 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
58 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
236 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
133 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
33 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
38 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
123 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
81 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
163 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
23 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
118 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
31 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 ...
2
votes
0answers
63 views

People Picker in sharepoint 2010 in Client Object model

I want to implement a people picker functionality in sharepoint 2010 with Client Object Model (JSOM), how to do it? Actually i have implementated in 2013 but the same code does not work on 2010.
1
vote
2answers
104 views

JSLink Client-Side Rendering Not Functioning on Custom List

I tested out the use of JSlink on the homepage with a demo list & it worked fine. I then used the same JSLink on the Demo List itself but images did not render. Any ideas on what I'm missing? ...
0
votes
0answers
16 views

Routing rules are not working for drop off library.

When I upload files using Client Object Model to SharePoint drop Off Library, Routing rules are not working. I have noticed that there are Solutions for Server Object Models (Policy.dll). However I ...
0
votes
1answer
33 views

Activate Cross-Site Publishing with CSOM

We are currently evaluating on how to enable/configure Cross-Site Publishing with the usage of CSOM. When using Server Side Object Model (SSOM) the documentation recommends to use the ...
0
votes
0answers
56 views

System.NullReferenceException: Object reference not set to an instance of an object

I am writing a code to retrieve data from SP lists. But when I try to deploy my solution through VS 2013 it says Server Error in '/MyApp' Application: object reference not set to an instance of ...
1
vote
1answer
89 views

Reorder Sharepoint content type fields programmatically

How to set order of content type fields in Create and Edit form via C# SharePoint 2010 Client Object Model or Sharepoint 2010 Web Services?
5
votes
0answers
133 views

How to access a custom field of a list using REST

I'm trying to get information from a list in a custom SPField called "My Field" with the internal name "MyField" using this JavaScript code: $.ajax({ url: ...
0
votes
1answer
41 views

Set items while uploading a file in a document library

I am using JavaScript to upload a file in a document library, like this clientContext = new SP.ClientContext.get_current(); oWebsite = clientContext.get_web(); oList = ...
0
votes
1answer
25 views

Why do I use load AFTER these portions of code?

Let's take for example the code below: function createListItemProdus() { var clientContext = new SP.ClientContext.get_current(); var oList = ...
1
vote
2answers
97 views

Sharepoint Read list items using Javascript

I wrote a query to Read list items and a specific column value like this var invoiceitemID = SPUtility.GetSPField('ID').GetValue(); var clientContext = new SP.ClientContext.get_current(); var oList = ...
0
votes
0answers
53 views

Copying a reusable workflow from one SharePoint online site to another using csom

I modelled a reusable sharepoint 2013 workflow using designer and published that as a feature in site collection in SharePoint online. Now I was to use the workflow template and dynamically change ...
0
votes
2answers
70 views

Upload file to document library using Javascript

I want to upload a word document to sharepoint document library using javascript (say for ex .Net site). How can i achieve this?
0
votes
1answer
80 views

CSOM Join with CAML query raise exception

I am trying to retrieve all Customer Contracts which Customer Master has Procurement Relevant = True I used CSOM to communicate with SharePoint 2010 to retrieve list items and used CAML query to ...
1
vote
1answer
51 views

Using promises with executeQueryAsync results in error

I'm pulling information from an Excel spreadsheet and trying to check the rows against data from a SharePoint list to find duplicates. The executeQueryAsync() in the itemIsDuplicate() function is ...
0
votes
1answer
32 views

How to download windows sharepoint services site list

I'm trying to download windows SharePoint services site list using client side object. I'm getting error 500 error site does not exist.How can I download list data from windows SharePoint services
0
votes
0answers
22 views

How can I take some user input (html or markdown), transform with XSLT, and write the resulting file to a library?

Not looking for a solution here, just something to get me started in the right direction. I would like to create a page that takes some user input from a textbox (markdown would be cool, but HTML is ...