Acronym for Client Side Object Model. It comprises both managed (.NET) and JavaScript object model (JSOM)

learn more… | top users | synonyms

0
votes
1answer
20 views

Deleting file versions except the latest version either using JSOM or SPServices

I want to write script that gets all versions of documents in site and deletes all of them except latest version either using CSOM or SPServices. I have found some information on net but could not ...
1
vote
1answer
45 views

Site url exceeds maximum length of 256

I'm trying to create a team site and get the following error message Site url https://myurl/sites/mylongsitename exceeds maximum length of 256. The url itself is under the 256 limit, I've also ...
0
votes
1answer
33 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 ...
0
votes
1answer
25 views

Is it possible to write a CAML query that will update or insert an entry based on its existence?

I'm working with Sharepoint using CSOM and Javascript. I need to cache usage statistics in a List with one entry per user, updating values in a user's list entry when they interact with the site in a ...
0
votes
1answer
23 views

this.get_context is not a function when call getMyProperties

When I call the code below: script type="text/javascript" src="/_layouts/15/SP.js" /script script type="text/javascript" src="/_layouts/15/SP.UserProfiles.js" /script script type="text/javascript" ...
0
votes
0answers
15 views

Equivalent of SPRelativeDateTime.GetRelativeDateString in CSOM sharepoint 2013

What is the equvalent API for SPRelativeDateTime.GetRelativeDateString in sharepoint 2013 Client object model using (SPSite site = new SPSite("http://your.site")) { using (SPWeb web = ...
1
vote
0answers
28 views

Creating fields InternalName or StaticName

I'm looking to copy fields and views from one site to another. I get the message that column does not exist and believe its down to when they are created. I'm using the below to create a field ...
0
votes
1answer
15 views

Project Server Get project field value using Javascript

I've been using javascript to access to libraries in a site, but now I want to get the value of a custom field in a project. I've been looking to do this but I've found nothing, clientcontext does ...
0
votes
0answers
9 views

Enable item scheduling on a publishing library via SharePoint .NET client API

Does anybody know how to enable item scheduling on a publishing library via code (.NET Client API)? This can be done via the Settings UI for the library in Manage Item Scheduling. However, I can't ...
1
vote
2answers
52 views

PublishingWeb.GetPublishingWeb is not working in SharePoint 2013, CSOM

var pWeb = PublishingWeb.GetPublishingWeb(context, context.Web); context.Load(pWeb); if (pWeb != null) { <This condition is true for Team and Publishing Site ...
1
vote
0answers
34 views

How can I increase the allowed execution time for a CSOM Client Context?

I am running SharePoint 2013 and have a Windows app that creates SharePoint sites with CSOM. I have used Powershell to adjust the ClientCallableSettings, lengthening the ExecutionTimeout to 3 ...
0
votes
2answers
22 views

RequestUsageExecutionTimeThreshold: what doing this property?

Undocumented property: SPClientCallableSettings.RequestUsageExecutionTimeThreshold
1
vote
0answers
26 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
0answers
29 views

How to upload display templates via CSOM - “Value does not fall within the expected range.”

I have the following code to upload display templates, but I have this error: [Microsoft.SharePoint.Client.ServerException] = {"Value does not fall within the expected range."} I suppose the error ...
2
votes
2answers
77 views
+50

Creating form based authentication users using client object model

I need to create a considerable number of form based authentication users. I have an Excel spread sheet containing user names and email addresses. I have no permission to execute code directly on farm ...
0
votes
1answer
48 views

Update multiple User Profiles and their properties using CSOM

Is it possible to update multiple user profiles and their properties using CSOM. I have checked the code for SetSingleValueproperty() method, but can't use it for updating multiple properties for ...
1
vote
0answers
27 views

Creating/Updating Folder failing for asynchronous client calls on Update

I am using CSOM to create folders and upload files on a Sharepoint 2013 document Library. I am creating folders and subfolders inside them by calling the code below in a loop and trying to set their ...
0
votes
1answer
38 views

CSOM Iterate all SiteCollection in an SPO Tenant

I am trying to iterate over all site collections in a SharePoint Online Tenant. I found this code on the web and adapted it to my needs: context = ...
1
vote
0answers
24 views

Try - Catch CSOM

I am trying to implement try - catch in CSOM - JavaScript, I have the following code: var ctx = new SP.ClientContext.get_current(); var exScope= new SP.ExceptionHandlingScope(ctx); ...
0
votes
1answer
32 views

Paging in CSOM with sharePoint results

how do we implement paging for results after we get results in onSuccess function, I have like this: for(var i = 0; i <results.length; i++){ } But ...
1
vote
0answers
19 views

Call Javascript Function After Saving Calendar Item

I am having a script as below:- function getColorValue(aId,atitle) { try{ var clientContext = new SP.ClientContext(); var oWebsite = clientContext.get_web(); var oList = ...
0
votes
0answers
16 views

Exception while retrieving all available Site-Columns Sharepoint Client Model [duplicate]

I'm trying to retrieve all available site-columns from my sharepoint site. This is what I do: ClientContext clientContext = new ClientContext(siteURL); clientContext.Credentials = ...
1
vote
2answers
31 views

How can I see the fields available for retrieval via get_item()?

I'm using Javascript CSOM to try and integrate a Discussion list into a site I'm working on. However, I can't figure out what Discussion item fields are available for me to access via get_item(). I ...
0
votes
0answers
34 views

Distinguishing between SharePoint Instances

I need to distinguish between unique SharePoint Instances in my provider-hosted App. I used to determine them on the Host-Url like that: initializeSharePoint(Request["SPHostUrl"]); // Interactions ...
1
vote
0answers
17 views

How to execute a SQL Agent Job on a button click in a Web Part page of a SharePoint 2013 site?

I have a SharePoint 2013 on-premises site. The requirement is to add a button to one of the Webpart pages and on click of that button, a sequence of 3 consecutive SQL Server Agent jobs will be ...
0
votes
2answers
23 views

Forms Authentication in Sharepoint 2013, _vti_bin/authentication.asmx error

I'm getting this error when using CSOM in a FBA web application that is configured agains't a custom FBA provider. I'm getting this error when site is configured for Forms, if a disable forms with ...
0
votes
0answers
41 views

Requested value 'CheckBoxes' was not found

There's a weird thing happening with my Windows application. I have created a Sharepoint utility to automate the creation of content-types and site-columns. At a point where I try to get my available ...
1
vote
2answers
39 views

Create a site-column of type user, multichoice and multiuser using Sharepoint Client Object Model

I'm trying to create site-columns with following types: Text, Note, Number, Choice, User, MultiUser, MultiChoice I've implemented it for all the types except for User, MultiChoice and MultiUser. ...
0
votes
0answers
18 views

How to specify InternalName for a list field in Sharepoint Client Object model

I'm trying to add a field to my current list. This is what I've achieved so far: Field description = list.Fields.AddFieldAsXml( @"<Field Type='Note' Name='DataType' ...
1
vote
2answers
48 views

Add a lookup field for a list in Sharepoint Client Model

This is what I've achieved do far: var listCreationInfo = new ListCreationInformation(); listCreationInfo.Title = "New List"; listCreationInfo.TemplateType = (int)ListTemplateType.CustomGrid; List ...
0
votes
0answers
41 views

Use CSOM with ADFS credentials from Single Sign-On enabled ASP.NET MVC app

I have the following setup: ADFS 3.0, SharePoint 2013 and the custom ASP.NET MVC app. Both SharePoint and MVC app are configured to use Single Sign-On from ADFS, so once user is logged in via ADFS, he ...
1
vote
1answer
46 views

JavaScript: get webpart context by DOM ID

I have an already loaded page with webparts. I want to get the webpart context object by using IDs which I can get from the DOM, e.g. webpartid="bf385785-6507-4af1-b419-b8bf30dc5103" Basically the ...
0
votes
1answer
21 views

Adding group to as Site Administrator using CSOM

Is it possible to a add an existing group as SharePoint site collection administrator using CSOM(Client Side Object Model)? Please share the code for doing the same.
2
votes
1answer
54 views

Error while closing Modal Dialog (JavaScript)

So I create a Modal Dialog with this code: function openModalDialog(title, url, callback) { var options = { title: title, url: url, dialogReturnValueCallback: callback ...
0
votes
0answers
14 views

An unhandled exception when connecting to sharepoint 365 via CSOM

Here is my Code: using System; using System.Security; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Microsoft.SharePoint.Client; ...
0
votes
0answers
13 views

Csom Script insertion

I'm using SharePoint Designer workflow, I can,t use Visual Studio because of errors always popping when I deploy. I'm new to using SharePoint client objects, I use Jsom and include Js files in the ...
0
votes
0answers
25 views

Webpart page content not being overwritten CSOM SharePoint 2013

I am using the code below to create a WebPart page. The content is an exported WebPart page that does not have any content (ie webparts) added to the page. This creates the page fine the first time ...
1
vote
2answers
46 views

How to assign masterpage via CSOM?

I have the following code to assign masterpage via CSOM but its not working, after I go to the site, it says File not Found, I guess URL is wrongly constructed. Please note that I am not trying to ...
0
votes
1answer
16 views

External websites calling Sharepoint data

I'm trying to figure out if what I'm looking to do is possible. We have existing websites that are not Sharepoint based. Internally, we have an anonymous enabled Sharepoint site we'd like to publish ...
0
votes
2answers
49 views

Csom or rest to verify user

I am uploading a spreadsheet to a task list using visual studio - the sheet will usually have users that are misspelled or incomplete and SharePoint throws a not a user error. I have to go back fix ...
2
votes
1answer
46 views

PropertyOrFieldNotInitializedException even if the field is loaded

I am using the below part of code in provider hosted app: Microsoft.SharePoint.Client.File destinationFile = destinationFolder.Files.Add(fileCreationInfo); ListItem ...
0
votes
1answer
35 views

SharePoint 2013 CSOM Upload a document from asp.net website

I am trying to upload a document from an ASP.NEt website (not an App) to a SharePoint library and using CSOM. This is an on premise sharepoint 2013, not office 365. Below is the code to upload the ...
0
votes
1answer
51 views

How to create a search using sharepoint JSOM

I'm new to SharePoint and JSOM and i'm trying to build up a search using JSOM. and i tried below code snippets I FOLLOWED FOLLOWING BLOG ...
0
votes
2answers
61 views

SharePoint Online Iterating through Document Libraries CSOM

I am trying to iterate though a document library and set each document/items within to inherit permissions (at the moment each doc/item is using uniquer permissions). I am able to get the specific ...
1
vote
1answer
34 views

RoleDefinitions.BreakInheritance 2013 CSOM API

I need to break permission level inheritance. The following works fine with the server API: SPWeb.RoleDefinitions.BreakInheritance(true, true) Now I need to do the same with Sharepoint 2013 CSOM ...
0
votes
0answers
16 views

How to select parent list whole data with child list data. CHild list containing parent lookup field

I am trying to get data from chlid list which contains parent lookup filed.Also to get parent list data with child data by using join but got nothing can anyone provide me way how to do this
1
vote
1answer
57 views

How to use result obtained from clientContext.executeQueryAsync

i have to use result obtained from clientContext.executeQueryAsync for condition in code.But, now i face problem that clientContext.executeQueryAsync result not obtained when needed.
0
votes
1answer
16 views

'u.Email' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException'

'u.Email' threw an exception of type 'Microsoft.SharePoint.Client.PropertyOrFieldNotInitializedException' When I try to get the email from a user in a list. Here is mycode: CamlQuery query = ...
2
votes
2answers
150 views

Sharepoint 2013 Development Boundaries

I need some understanding around SharePoint 2013 Development model. What are SharePoint 2013 Development Boundaries? What SharePoint developer can and cant do with each model?
0
votes
1answer
35 views

The remote server returned 403 forbidden when creating subsite using remote provisioning pattern

I have the following scenario on sharepoint online. One Site collection with: RootWeb List Clients List Projects Subsite called Clients for hosting each client subsite One RER to create a client ...