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

learn more… | top users | synonyms

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 ...
2
votes
0answers
33 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
46 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
22 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
32 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
101 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
58 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
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
69 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
32 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
145 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
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
38 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
22 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
45 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
69 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
9 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
0answers
24 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
35 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
67 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?
4
votes
0answers
100 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
31 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
24 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
60 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
33 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
41 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
41 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
34 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
29 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
19 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 ...
0
votes
0answers
16 views

SPFile.Publish does not start workflow

So it's not really SPFile because I'm using CSOM, but you get the point. PublishingPage.ListItem.File.Publish("my comment here") I have the workflow configured to "Start this workflow to approve ...
1
vote
1answer
50 views

Refresh parent page after closing list item dialog

I'm trying to refresh the parent page of a list when closing the dialog of a list item. Is there a way to achieve this with javascript somehow? I inspected the button in the DOM and tried to write ...
0
votes
2answers
44 views

Cannot return an item's Author and Editor properties in CSOM

I have a utility which makes updates without affecting the ModifiedBy/Editor field. Before any updates are made, I store the user value in one of two ways: CamlQuery camlQuery = new CamlQuery(); ...
1
vote
1answer
35 views

Using SP.FileCreationInfo to modify an .xlsx or .xls file

I'm trying to create a client-side solution where customers can download a template .xlsx document populated with data filtered from a SharePoint list. I know that JavaScript generally isn't used to ...
0
votes
1answer
29 views

field or property \“ListItemAllFields\” does not exist exception

Below code credit goes to Vadim Gremyachev. My goal is to grant user access permissions to certain SharePoint folders by using the CSOM. The goal I am trying to achieve is to access the library called ...
2
votes
1answer
37 views

Register CSR via Client object

Im trying to register a client side rendering script to a webpart using JS to do so. Im having a hard time finding examples on how to do this, is anyone able to help me out? Below is what i got ...
0
votes
2answers
41 views

Clientside PeoplePicker: How to not execute next line (JS) until all users are resolved

I'm using SharePoint Online (2013), but I'm rather new to SP and anything Microsoft. In my JavaScript, I'm programatically populating a client-side PeoplePicker and having the Picker resolve the new ...
1
vote
1answer
32 views

Difference between Publishing site and Team site while loading SP.JS

I would like to know what is the difference when loading SP.JS file in Publishing site and Team Site. SP.SOD.executeFunc('sp.runtime.js', 'SP.ClientContext', function () {}); ...
0
votes
2answers
55 views

javascript not getting data from sharepoint list

I tried the below code from MSDN function retrieveListItems() { var clientContext = new SP.ClientContext('http://www.vignesh.cloudappsportal.com'); var oList = ...
0
votes
1answer
44 views

How to grant user permission to certain folders using Client Object Model?

So far I am able to grant user certain permission with the following code: ClientContext context = new ClientContext("http://myRealURL"); Principal user = context.Web.EnsureUser(@"myLoginAccout"); ...
1
vote
1answer
44 views

SharePoint CSOM File.LinkingUrl property not found

I am using Visual Studio 2013 and referencing v16 of both Microsoft.SharePoint.Client and Microsoft.SharePoint.Client.Runtime in a .NET4.0 application. According to the MSND page for a File object, ...
0
votes
0answers
24 views

retrieving user name in Jquery datatable and caml query

Hi I am on SharePoint 2010 version , I have created a list with createdby, createdDate and Employee name as columns in it. I am having a text box and a button when I enter employee name and click ...
1
vote
2answers
60 views

Get file name from document library

I have a document library named DocLibrary. Inside that, I have created few folders. Each folder have 3 another folder. Inside that, I store the specific files. Example: DocLibrary > NF1> ...
0
votes
1answer
49 views

How to get all users From Owners Group in sharepoint 2013 for a subsite

I am trying to get all the Users from a Sharepoint Owner's Group for a subsite. Below is the Script is Working fine . But it displays both Site and Subsite Users of Owner's Group. For example If SITE ...
0
votes
1answer
29 views

File Not Found. in ClientContext.Site.OpenWeb

I just tring to open the subsite using the CSOM. I'm geting the below error in clientContext.ExecuteQuery(). site URL is https://xxxxxxxx.sharepoint.com/Customer Orders File Not Found. ...
1
vote
2answers
108 views

Passing the Sharepoint Logged in user credentials to a REST API Call

I am having issues passing the current logged in user's credentials in to a REST API call. Here is the scenario: I have a SP 2010 hosted site that has a web part that makes a REST API call to ...
1
vote
1answer
53 views

Send Email with SP.ClientContent

Is it possible to send email using SP.ClientContext. Im aware of the limitations of send email in Javascript, but my understanding is that this calls the back end. All i see related to CSOM is c# ...
0
votes
0answers
29 views

Access list items cross site MySite<>SiteCollection

Office 365 online. I am trying to access list items from MySite host to another host: host: site.sharepoint.com mySite : site-my.sharepoint.com I am not using Apps, just simple cross site ...
0
votes
1answer
46 views

Get document from Document Library using Javascript

I am trying to get a document from document library.I am getting the file but I can't get its binary value. $.ajax({ url: fileUrl, binaryStringResponseBody: true, headers: { ...