2
votes
2answers
19 views

SharePoint 2013 get user groups by CSOM

I wrote some code to get the current user groups by CSOM. function getCurrentUser() { this.clientContext = new SP.ClientContext.get_current(); this.oWeb = clientContext.get_web(); ...
1
vote
1answer
17 views

breakRoleInheritance and RemoveRole CSOM

I need to breakRoleInheritance on the items of a SharePoint2013 list. I need to remove all the current roles and add only the Owner and the Current user. How can I do it by client side? Thanks, Nk
1
vote
0answers
12 views

CSOM / Webservice multilingual provisioning site columns, lists,

Is it possible in SharePoint 2013 to create site columns, content types, lists, libraries, ... in different languages (so, with different display names) by CSOM (client server object model) or a ...
1
vote
0answers
28 views

Jsom not working when user is reader

I am using following code to get terms from a termset in MMS. It is a office 365 solution and some of users is external users which have read permissions. The javascript doesn't work when user is ...
1
vote
0answers
22 views

How would you build an AutoSPConfigurator (to be used when farm is installed) [closed]

I would like to have a tool that is an equalent to AutoSPInstaller, but for configuring the most used out-of-the-box features. It would do the following: Create sites Upload term set and configure ...
0
votes
1answer
32 views

Access Denied when creating post using managed client object model

I am using .net client object model for MicroBlogging (Post with hashtags). I am getting access denied error. i am using below code const string serverUrl = "http://usfkl13as133v:9191/en-US/"; ...
3
votes
1answer
107 views

Get quick launch using CSOM (JavaScript)

On my publishing site I have changed its current navigation (quick launch) to use structural navigation, showing all items under current site. I see that the quick launch shows pages and sub sites for ...
2
votes
1answer
30 views

jQuery REST Results = “[object Object],[object Object] etc”

We are hiding the List GUI from our visitors on some landing pages in SharePoint Foundations 2013 and displaying instead REST data harvested from the applicable lists. Since SharePoint's REST has a ...
1
vote
0answers
58 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, ...
3
votes
1answer
62 views

Programatically adding an app to a site O365

Newbie question. With CSOM how to I add an app to a site. More detail: manually you can select options and then "add an app" The one in particular I am interested in is the Tasks. I can build any ...
5
votes
3answers
259 views

Get if user has permissions to access to a Cloud App for Sharepoint 2013 with JavaScript CSOM or Rest Api

I have developed a Cloud App for SharePoint 2013 on an office 365 server, and I figured out that to set the user permissions(who has access to it) for that app can be find over ...
2
votes
2answers
338 views

How to default a Person FormField in New Form Template?

Without using any addons, has anyone discovered a way to set a default value for a <SharePoint:FormField> where the field is a Person/Group? We'd like to default a field on our newform to the ...
1
vote
1answer
77 views

Programmatically add ListViewWebPart to Wiki Teamsite homepage with CSOM in SP2013

Someone who can point me into the right direction? Code snippets? Thanks in advance!
0
votes
1answer
95 views

Jquery show loading progress [closed]

Good day, I have a page with several javascript pages that get loaded. How can I check that all the JS files have been loaded? I tried the below with just alert boxes. $(onPageLoad); function ...
0
votes
0answers
42 views

How to authenticate user in Office365 (SharePoint Online) for 3-rd party application?

I found the SharePointOnlineCredentials class for Office365, but it requires user name and password. I'd like that SharePoint (NOT MY APPLICATION) asks user to provide user name and password using ...
0
votes
1answer
99 views

What are the big enhancements in the 2013 SharePoint REST/Client API? [closed]

The MSDN mentions there are some enhancements in the REST/Client API, but the things it lists seem to already be in the 2010 APIs. Can someone please elaborate on the new features that are NEW In ...
0
votes
2answers
94 views

Can't read Start or End Times with Client Object Model from Calendar in SP 2013

I have some experience using the SharePoint Client Object Model to retrieve text fields and URLs/images from lists in SP 2013. I'm currently trying to do something similar with a calendar. I have been ...
0
votes
0answers
91 views

How to retrieve user Quicklinks from MySite with CSOM?

this is my first post on SharePoint StackExchange. Is there a way to retrieve current user Quicklinks and show it on the Startsite with CSOM? In this example, the link below "Edit Links" in the Left ...
0
votes
1answer
225 views

Sharepoint 2013 App Cant Update Fields on Lists in parent web

I have a Sharepoint 2013 O365 App that is Autohosted. It is doing a simple list item creation on a remote sharepoint list in the site that owns the app. I have added app permissions of all kinds to ...
0
votes
1answer
180 views

SharePoint Online + CSOM: User Profile Property Privacy

It is known that SP 2013 left only two levels of User Profile Property Privacy: 'Only me' and 'Everyone'. Is there a way to grab the privacy level using CSOM? The code below only gives me values ...
2
votes
1answer
302 views

Create Taxonomy sub-term using CSOM and javascript

in sharepoint managed metadata I found very little documentation on managing terms using javascript CSOM. I could create a taxonomy term directly under the term set but I want to create a term under ...
1
vote
0answers
286 views

Is it possible to programmatically add page items to Enterprise Wiki using CSOM or REST?

Like a lot of us I'm green when it comes to SharePoint development. I've been tasked with moving MediaWiki content over to a SharePoint Enterprise wiki. At this time I do not have access to the server ...
2
votes
0answers
180 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 ...
6
votes
2answers
518 views

Get list item “Likes” using JSOM or REST API's?

How can you retrieve a list items "Likes" using the JSOM or REST API's? I know there is the following method: SP.Social.SocialFeedManager.getAllLikers(postId), but in testing I was not successful ...
0
votes
1answer
215 views

Programatically update profile field(s)

I have a requirement to update user profile fields. I'm able to query the fields, of course, using the CSOM API in Javascript. But, as per here - ...
1
vote
2answers
98 views

Gaps between page loading and CSOM calls

I'm working on a sample script that calls out to the User Profile service and retrieves some sample data. I noticed that when I deploy the Application page and render it, I get a considerable gap ...
1
vote
2answers
315 views

How to set Navigational properties through App event receiver in SP2013

I am trying to set the navigational properties in SP2013 autohosted app. I am doing this at App installed receiver. I have written below code for that, which is failing with error message: - The ...
0
votes
5answers
408 views

SP2013 CSOM, am I missing something?

The CSOM samples from Microsoft.. the samples I find online.. blog posts and resources.. ALL seem to use CSOM from a C# app. If the push is to write Apps and use a client-side model, why are there no ...
1
vote
0answers
96 views

SharePoint-hosted app, with edit mode to update its own properties

I'm using the editMode parameter to detect and display a simple web part admin UI. When the admin clicks a particular button, I want to use CSOM to update the web part's properties for the page it is ...
0
votes
1answer
49 views

SP2013 App icon not rendered, only App link is displayed + how we can set the sliding transparent hover text over App icon?

I am facing an App Icon related issue. I am creating SharePoint Hosted App which I am deploying to SP 2013 Developer site. By default any app will have the AppIcon set under Images folder. Also it is ...
1
vote
2answers
481 views

Error while pdating Master Page through JavaScript Client Object Model using SP 2013 App

I have created a Site Collection in SharePoint 2013 online. In this site I am trying to update Master Page through JavaScript Client Object Model. My JQuery scripts are able to change the Site Master ...
2
votes
2answers
968 views

Setting Search Center URL in SharePoint 2013 using Javascript CSOM

In SharePoint 2013, I am trying to access Search object through JavaScript CSOM. I want to know the object which can give me the access to Search Settings under Site Settings. I tried looking under ...
0
votes
1answer
1k views

Accessing a list from app web on host site generates access denied

I am trying to get title of a list which is located on Host Site from an SharePoint hosted app by using csom (javascript). I have added permission on Manifest file and chose the list but still getting ...
2
votes
1answer
391 views

How to load several users by array of login names CSOM

I have a dynamically created array of user logins, I would like to retrieve information about these users through CSOM. I found this great post, but there is explanation how to retrieve all users from ...
-2
votes
3answers
536 views

Why not use Sharepoint 2013 as just a backend for REST / CSOM clients?

This might sound a bit extreme, but now that REST / CSOM API's are more fully featured, why not just write web apps in whatever framework you're comfortable with and utilize the REST / CSOM API's ...
2
votes
2answers
584 views

SharePoint 2013 APIs for anonymous and/or mobile access

In SharePoint 2013 (Preview), does any of the APIs (csom, REST, etc.) work with anonymous access? With mobile access? I haven't found any reference to this in the documentation. I did a quick test ...