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

learn more… | top users | synonyms (3)

4
votes
0answers
317 views

Adding an existing app part using the client object model( finding the xml)

I've recently found this nice thread on adding an existing webpart using the csom: Add an existing WebPart Using the Sharepoint client object Model I've tried the same approach for an app part (so an ...
3
votes
0answers
94 views
+50

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"); ...
3
votes
0answers
140 views

JSOM working in Chrome but not IE

I am learning the Java CSOM at the moment and have written a little program that creates a sub-site and assigns a masterpage to it. I am embedding all the code directly on the page. I am finding ...
3
votes
0answers
174 views

Replicate AllItems.aspx inline edit in custom page layout

I am attempting to replicate the inline editing features found in the allitems.aspx page in a custom page layout. For whatever reason the "new" and "edit" list options don't seem to be showing up. ...
3
votes
0answers
143 views

How to access Page layouts and site templates using CSOM?

How to access Site Settings > Look and Feel > Page layouts and site templates using CSOM? The page allows end users to change these settings: Subsite Templates: subsites can use any site template ...
3
votes
0answers
1k views

Check given user's listItem permissions with SharePoint 2010 Managed Client Object Model (c#)

Is it possible to determine if a user can access a given item identified by its url without the users context - it has to be done with CSOM. Code so far: var file = ...
3
votes
0answers
281 views

Design Package import SharePoint 2013 using App Installed event CSOM

In SP2013, I am trying to import and export the design package from one site to other site using AppInstalled event using CSOM. I am not able to get the context of source site to import the design ...
3
votes
0answers
922 views

Url to an item with Client Object Model

Regarding my question, at this moment i'm writing some client object model code and I can't find a way to retrieve create make an url ... My question now is: How can I create an url to an item? I ...
2
votes
0answers
13 views

Why a pair of FieldRef must be specified for a Join?

I'm writing a small js library to abstract away the annoyance and complexity of creating a CAML query. In that regard, can you explain the significance of both FieldRef elements within a Join, when ...
2
votes
0answers
39 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); ...
2
votes
0answers
130 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 ...
2
votes
0answers
71 views

Get object of ribbon button in JavaScript

I am trying to access the ribbon button via JavaScript. Below is my code: // Get the page manager var ribbonPageMgr = SP.Ribbon.PageManager.get_instance(); // Get the ribbon var ribbon = ...
2
votes
0answers
164 views

GetUserEffectivePermissions returns wrong results

I'm checking the permissions for user on a SharePoint 2013 list: using (var ctx = new ClientContext("http://comtoso.com")) { var list = ctx.Web.Lists.GetByTitle("TestList"); ...
2
votes
0answers
242 views

How to properly cache, validate, refresh Access Tokens?

I'm a complete newbie to SharePoint Provider-Hosted Solutions and their authentication logic. My App is an ASP MVC Solution. I run many AJAX-Calls from Client-Scripts to my Controller to interact with ...
2
votes
0answers
50 views

Possible to change view style client-side?

Is it possible to change the view style (for example to Shaded) client-side (using CSOM, JSOM or web services)?
2
votes
0answers
108 views

Updating an existing content type field link by JSOM

I have a content type and I would like to set some field links to hidden. The code runs perfectly, but for some reason, when I check in the UI if the field link is hidden, the changes are not applied. ...
2
votes
0answers
75 views

SPListItem.BackwardLinks equivalent in CSOM, JSOM, or REST?

In the Server API for SPListItem there is a property called BackwardLinks that returns a collection of items that link to the item. I don't see the same property in CSOM, JSOM, or REST. Is there a ...
2
votes
0answers
44 views

Client WebPart (apppart), I need to explain some settings

Property element <Property xmlns="http://schemas.microsoft.com/sharepoint/" Name="Text" DefaultValue="Text" Multilingual= "true" | "false" PersonalizationScope="user" | "shared" ...
2
votes
0answers
352 views

Changing the Modified Date of a List Item using the SharePoint Client Object Model (C#) with Contribute Permission

I have a small snippet of code that I use to update the Modified Date of a list item and it works great for users with Full Control permissions. However, for users with just Contribute access to the ...
2
votes
0answers
266 views

Windows Authenticated API calls failing when I use a custom sign-in form for FBA

I have a SharePoint 2013 web application configured for both Windows Authentication and FBA (which is working fine). I also have some code which executes a CSOM request using windows credentials, ...
2
votes
0answers
423 views

SharePoint and Javascript - Get content types for list

I have been using the JSOM with SharePoint 2013 and am trying to get the content types of a list to iterate through, and am having no luck. First, while the success handler is being reached, the ...
2
votes
0answers
220 views

using sharepoint OOTB DragDrop.js library in Custom webpart

I implemented drag and drop file upload functionality with using REST api in my webpart . But i found an OOTB sharepoint dragdrop.js library which has numerous methods to create drag drop control. ...
2
votes
0answers
419 views

Install an app from the appCatalog using javascript CSOM

I'm trying to install an app in a site from the AppCatalog using the javascript CSOM I get the apps from the App Catalog using req.apps = SP.AppCatalog.getAppInstances(clientContext, oWebsite); I ...
2
votes
0answers
372 views

ssl certificate error when using Client object model

I wrote an app that gets information from some Sharepoint 2010 lists and displays it to the user. It works fine on my development machine.But when I copied the exe to another desktop machine i got the ...
2
votes
0answers
237 views

Dynamically Setting a List View on a WebPart Page

I have been unable to load a page showing a dynamicaly selected View. I can not just display the List itself (Although this would allow me to specify the View in the URL) because I need to modify ...
2
votes
0answers
153 views

Sharepoint Online - How do I retrieve document's social tagging information

Is there any way I can retrieve documents' social tags and notes using Client Object Model? I'm on the client side so I don't have access to Server Objects. I've been searching all around but found ...
1
vote
0answers
30 views

How to Update/Set Field values by LookUpId in a sharepoint list?

I have a list called ResourceCheckList which contains following columns with lookup fields as below : Here Resource:ID is a lookup column which contains unique ID of another list. So, I want to ...
1
vote
0answers
32 views

SharePoint Online - custom ribbon tab on all pages

Is there a way to make custom tab available on all pages of SharePoint Online website? For SharePoint Farm solution you can register a Delegate Control and activate it on a server side like this: ...
1
vote
0answers
30 views

Display Rating Stars

I have a page and I want to display the items' title of a list with the rating stars for each item beside it in that page. What should I do?
1
vote
0answers
37 views

Move terms to another termset/ termstore JSOM

Hi i need to create an app which gets two inputs 1.) Term name 2.) Parent name( term-set or term-store name) once i click on a button, that 1.) term should go under 2.)parent term-set If i put ...
1
vote
0answers
40 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 ...
1
vote
0answers
45 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 ...
1
vote
0answers
37 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 ...
1
vote
0answers
39 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 = ...
1
vote
0answers
33 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 ...
1
vote
0answers
88 views

Update ID field with client object model

I'm trying to create items in a list and set the ID field programmatically (for use in a lookupfield in another list). This works serverside by setting the property ReadOnlyField of the field ID to ...
1
vote
0answers
27 views

How to provision External content Type using CSOM

Is it possible to provision External Content type and list using CSOM? Thanks in advance.
1
vote
0answers
52 views

CSOM object not initialized

I have code that gets group information from a SharePoint Online site using the CSOM API. I want to compare the id of a group with the ids of the associated groups of the web. When the code runs in ...
1
vote
0answers
30 views

Migrating SP2010 List Items to Office 365 creates empty items in O365 [CSOM]

I am trying to migrate SharePoint 2010 list items to an O365 list. But when the code is executed, it creates empty list items in O365 list even though "newItem" has the correct key value pair. Here ...
1
vote
0answers
32 views

Get all social tag terms for documents in a document library

For the project I'm on, we have a component for integration between Dynamics CRM and SharePoint 2013 that's been developed offshore, and I'm currently working on improving the performance of the ...
1
vote
0answers
23 views

Editting a Search Results Web part changing the result source CSOM

I am doing some CSOM powershell to edit a search results web part and change the result source. Don't really know where to start with this as I am new to the world of CSOM powershell. Any help would ...
1
vote
0answers
148 views

Error when adding web part or app part via CSOM remote provisioning to SharePoint page: Specified argument was out of the range of valid values

Problem Adding a web part (or app part) via CSOM remote provisioning to a on-premise SharePoint web part page results in a Specified argument was out of the range of valid values exception ...
1
vote
0answers
38 views

Get the last rated item in a SharePoint list

we have a SharePoint list with social rating feature enabled. On the homepage I want to display the "Latest Voted Item" of that list. Is it possible to get the last rated items in a SharePoint list ...
1
vote
0answers
42 views

How to create multiple fields using REST query

According to MSDN, we can create field like below.. $.ajax({ url: "http://<site url>/_api/web/lists(guid'da58632f-faf0-4a78-8219-99c307747741') /fields", type: "POST", data: "{ ...
1
vote
0answers
64 views

How to get Title Resource from a View with JSOM or REST?

I am able to get title/name resource from lists, content types and fields. However, I'm not able to get title resource from views. I'm not sure how well documented this is, but this is how I get ...
1
vote
0answers
69 views

Get ContentType by “internal name” through REST/JSOM

I understand content types has nothing equivalent to fields internal name, they only have Name, which is like a title. This can be changed, and alters between locales. My impression is that the safe ...
1
vote
0answers
19 views

SharePoint document library Multi User field set only odd position users in case of Office documents

I am trying to set users in Multi-User field of document library documents by using CSOM. It works properly for normal documents(non-office docs) but for office documents it is setting only odd ...
1
vote
0answers
25 views

Determining Users on SharePoint website with API?

Was thinking about building an app part that enabled some level of in-app messaging to other users currently on the site (probably via use of websockets connections to each other). Is there any way ...
1
vote
0answers
33 views

Cannot update allowMembersEditMembership

I can't seem to update the setting on a group to allow members to edit members. This is my code: function setGroupsMembershipEditingMode(uri) { var context = new SP.ClientContext(appweburl); var ...
1
vote
0answers
166 views

Set Task list EnableAssignToEmail in CSOM

I would like to set the EnableAssignToEmail bit on a task list via CSOM after a list is created dynamically. I have found a way to do this in Powershell and in code using SPList: Add-PSSnapin ...