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

learn more… | top users | synonyms

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

Import bulk data (over 5000 List Items) into SharePoint

I have an Microsoft Office 2010 AddIn which imports Data into SharePoint. The tool creates a Dictionary with over 5000 Values. Every Value is a C#-Class with Data and represents a SharePoint List ...
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 ...
1
vote
1answer
121 views

Office 365 pre-provision my site issue with Powershell

I am creating personal sites using powershell csom. My issue is on below line $loader = [Microsoft.SharePoint.Client.UserProfiles.ProfileLoader]::GetProfileLoader($ctx) I get following error. ...
0
votes
0answers
28 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
0answers
34 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 ...
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 ...
1
vote
1answer
64 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?
0
votes
2answers
40 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
47 views

Sharepoint 2013 - open a second modal window from a first modal window

I have an aspx page opened in a modal. On button click I need to close the current modal and open a new one or just open the new page in the same modal. Any suggestions? Below is my code: function ...
1
vote
2answers
59 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
27 views

Get date before and after and query out free dates on range

When double booking in calender, the user get prompted to an dialog where Current day and +1 och -1 on day and then display the free dates, doing all this code wihout +1 om fromTime, and -1 on toTime, ...
4
votes
0answers
98 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 = ...
2
votes
2answers
790 views

Set request access email address through CSOM

In the server side object model it's possible to set the request access email address through the property SPWeb.RequestAccessEmail (MSDN). Since we are moving our SharePoint tenant to Office365 I'm ...
0
votes
0answers
31 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 ...
1
vote
1answer
522 views

Copy files/folders between site collection and retaining metadata

I'm using SharePoint 2013 I need to copy files/folders/sub folders from one site collection to different site collection(basically archiving them). I need to do this remotely by using CSOM/JSOM. ...
5
votes
1answer
163 views

SoapException: Possible SOAP version mismatch, accessing SSL enabled site

When I execute the following code: var context = new ClientContext("https://somehost/somesite"); FormsAuthenticationLoginInfo login = new FormsAuthenticationLoginInfo("jesuslogin", "mypassword"); ...
0
votes
1answer
495 views

Reading a Term Set using javascript

I am trying to read a term set (Ideally I want it in tree order) but haven't figured out a simple way of doing that yet. So I have the below working about from the line where I am trying to read the ...
1
vote
1answer
183 views

Hide title field in a SharePoint list

I'm creating a SharePoint list with JavaScript, now I want to hide the title field in the same process. How can I achieve this?, I was trying to add a jslink, and in that document, hide the title ...
0
votes
1answer
37 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 ...
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(); ...
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
1
vote
1answer
33 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 ...
4
votes
3answers
3k views

How to enable publishing feature using CSOM?

How to enable site collection publishing infrastructure and site publishing features using CSOM?
3
votes
2answers
415 views

How to correctly pass extra properties to clientContext.load function

I have created a generic function which returns a list with only selected properties as shown: var getList = function (listTitle, properties) { var deferred = $.Deferred(); var ...
0
votes
1answer
28 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. ...
7
votes
1answer
5k views

Get a value included from a lookup column using the JavaScript Client Object Model

Related: How to retrieve a ListItem using the Javascript Client Object Model? In my previous question I was able to successfully retrieve a basic value from a list item. My problem is that I am now ...
0
votes
2answers
2k views

how to get list items fields using CSOM

I have to get other column value of list item whose "Title" matches with entered string in text box from the page. I am using CAML query to match "Title". But in Success function, how to get that ...
0
votes
1answer
549 views

Check-In & Checked Out files inside folder in Document library using Client Object Model

I am not able checkin/checkout the files in sub folders in the document library using client object model. Below is the code I am using. public void CheckOut()// CHECK OUT FUNCTION { try { ...
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
15 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 ...
0
votes
2answers
251 views

Get project custom fields (Project Server)

I am trying to access, in a project detail page, the project context via Javascript to retrieve the data of the custom fields. But my problem is that, when I try to access all the data it only shows ...
1
vote
2answers
495 views

How to create sub site context in sharepoint online using app model

I am trying to create a sub-site and some predefined lists in the existed site collection. I am successfully created the sub site in the site. But Now i want to create lists in that newly created ...
1
vote
1answer
49 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
1answer
28 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 ...
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 ...
1
vote
2answers
542 views

How do I get the URLs of files attached to items in my list?

I'm using the CSOM to get my SharePoint list. I need to loop through it and get the URLs for the files attached to each item in the list. C#: SPContext spctx = new SPContext("news"); List news = ...
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 () {}); ...
2
votes
1answer
543 views

Extract text from document in a SharePoint 2013 library

I would like to extract the text from documents stored in a SharePoint 2013 online document library. I have the document loaded using: ClientResult<Stream> data = file.OpenBinaryStream(); ...
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
1k views

SPServices - GetRolesAndPermissionsForCurrentUser

I have a list where one group of users is not allowed to delete items but they have view and edit permissions. All items in the list contain an attachment. However, users are not allowed to delete the ...
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"); ...
0
votes
2answers
77 views

Create filtered list view in Calendar using JavaScript/JSOM

I am attempting to create a filtered list view in a Calendar. It is creating everything as appropriate, but not creating the filters. It believe it's my CAML. My goal is to filter by a choice column ...
1
vote
1answer
43 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, ...
3
votes
2answers
113 views

Uploading file using COM occasionally gives an error that the file has been modified

I have created an Office Add In that is used to upload a Word document to SharePoint, showing a list of sites/subsites and Document Libraries. After the file is uploaded I set the content type based ...