1
vote
0answers
12 views

Setting SPWeb.AlternateCssUrl via CSOM or JS

According to this Microsoft Office 365 Blog post the SharePoint CSOM (.Net, REST, JS) has been enhanced to support setting SPWeb.AlternateCssUrl: ...
1
vote
4answers
37 views

CSOM programming - for regular user

Should I as a SP Admin be concerned about when a professional contract developer uses CSOM? I just want to make sure the code is good. What is your opinion?
0
votes
1answer
35 views

Based on URL how to set Global navigation nodes (CSOM) node as active - javascript

I want to use the same navigation everywhere (mysite, teamsites ..) So I'm fetching the (managed navigation) global navigation by csom in the masterpage. The global navigation is only going to show ...
2
votes
2answers
24 views

SharePoint group not visible

I created a new SharePoint group using UI. I do not see the group using: $web.Groups | select Name Why? (I need to access to the group by CSOM but the group is not found)
0
votes
0answers
28 views

SharePoint 2013 Event ID 3760 SQL Database ' ' on SQl Server Instance ' ' not found

I am running into following error message into my Event Viewer in the Sp2013 Web Server. Site is stable and no issues realted to db. But repeatedly it is throwing following errors: Log Name: ...
1
vote
2answers
67 views

Does ExecuteQuery have a cache/timeout/etc?

I wasn't sure how to phrase the title, forgive me. I'm running into an issue with the CSOM (SharePoint 2010, but likely in 2013 as well), where my initial ExecuteQuery() statement takes upwards of 20 ...
0
votes
0answers
40 views

Sharepoint 2013 List (Parent - Child) using CSOM - Need ECB menu in Parent Tasks

I'm trying to build a feature in SharePoint 2013. Scenario -- I have 2 lists.. List one -> Contain all projects List two -> contain project related tasks. I'm binding custom image on Project ...
1
vote
1answer
45 views

NavigationTerm.GetWebRelativeFriendlyUrl() returns value using SSOM, but returns NULL using CSOM

I'm using Managed Metadata Navigation and I'm trying to access it using CSOM. The problem I'm having is that I can't get the friendly URLs for the terms. If I run this code using the Server Side ...
0
votes
1answer
29 views

Get User Properties By Id

I am having trouble finding documentation on how to query for user properties via JSOM or CSOM using a SP UserID. I must be missing something because SharePoint returns an ID for the user involved in ...
0
votes
1answer
45 views

Identify if a Library item is a folder or not in CSOM

I have Library on which I have created a ribbon button. On click of the button I am trying to identify if the selected item is a folder or a file. below if the code snippet that I am using: var ...
0
votes
3answers
32 views

In managed .NET CSOM, why do we have to load list to get items when we are already loading the web?

We are using managed .NET CSOM. We are loading the web. But when we try to fetch list names using web.lists, we get error. To resolve we have to load web.lists. Why do we have to load list to ...
0
votes
1answer
33 views

What governs the decision to use server object model or client object model or javascript object model or REST?

What governs the decision to use (in SharePoint 2013)?: server object model (ssom) client object model (csom) JavaScript object model (jsom) REST
3
votes
1answer
58 views

Access Denied on use of AppPrincipalManager

We are getting the following error Access denied. You do not have permission to perform this action or access this resource. when executing the following code AppPrincipalManager ap = ...
1
vote
0answers
46 views

Update folder name using rest api

I am using REST to update folder name via sharepoint apps. My code as follows. executor = new SP.RequestExecutor(appweburl); executor.executeAsync({ url: appweburl + ...
3
votes
2answers
57 views

Sharepoint 2013 .Net CSOM search across “All Sites”

I'm creating a new ClientContext: ClientContext clientContext = new ClientContext(targetUrl); When trying to do a simple search: KeywordQuery keywordQuery = new KeywordQuery(clientContext); ...
0
votes
0answers
22 views

Filter ListView by Current User's City

I have a 2013 list view on a custom page. It is working with JSLink + all of the great OOB features. I have a city column in that list. How can I dynamically filter it based on the current user's city ...
4
votes
3answers
270 views

Set DateTime (utc) to listitem (CSOM, SP2013)

How to set UTC timezone to a listitem's DateTime field without executing query each time? This would be slow for many datetime fields and items: var utc = DateTime.UtcNow; var localTime = ...
1
vote
1answer
39 views

ICustomRouter interface >> CSOM or Server Side Object model

We are looking into a custom document route, and I know about the ICustomRouter interface. Can it be used in CSOM? The ICustomeRouter example here: ...
0
votes
0answers
46 views

Route documents to another site collection if approaching size limit

We'd like to have a Drop Off library look @ the current site size, and if it is approaching a limit, send the file to a different site within the site collection. It's kind of like a "you are ...
0
votes
0answers
24 views

Remove document from in-place hold with CSOM?

Is there any way to remove a document from an in-place hold using SharePoint CSOM?
1
vote
1answer
159 views

CSOM Workflow API InteropService cannot start new instances of Workflows

On my SharePoint Online site, I have created a SharePoint 2010 Site Workflow through SharePoint Designer. Now, I want to create an instance and start that workflow through the CSOM Workflow API. ...
0
votes
1answer
87 views

Updating current item using jslink

I am working on a solution where in I have to update current item based on a button click. I am thinking of using JSLink to generate button with each row, when this button is clicked i have to refer ...
1
vote
2answers
253 views

sharepoint csom get address and phonenumber from current user

I am building some CSOM code in my DispForm.aspx. I try to get the current user from the context. This works and I can get the loginName, id, title and email. But I would like to have the address and ...
0
votes
2answers
347 views

CSOM and Managed Metadata Field

I'm trying to use the Client Side Object Model of SharePoint 2013 to read a managed meta data field but I get null results When I look in the Site Columns, there are 5 fields in the "GroupName" ...
1
vote
1answer
100 views

SharePoint CSOM Unit Testing

I am currently using CSOM to upload/download files from SharePoint 2013 sites. I would like to know what would be the best way to unit test my operations. Is there a way I could create a fake ...
0
votes
0answers
220 views

CSOM OpenBinaryDirect generates 401 error on office 365

I have used same instance of ClientContext inside a RemoteEventReceiver (MinRer.svc.cs) in a provider hosted app to get RootWeb, SubWebs, ListItems and I have added ListItems to lists. It works like a ...
0
votes
1answer
599 views

CSOM Item Level Security “Cannot add a role assignment with empty role definition binding collection.”

I am trying to create an app that will set item level security for certain items in a library. However, I am getting the error mentioned above after these lines: item.RoleAssignments.Add( grp, ...
3
votes
0answers
114 views

Change SiteLogo via csom in SharePoint 2013

Regarding to this Question link. How can i change the siteLogo to a new one? Is it even possible to do it from a ConsoleApplication via CSOM?
3
votes
2answers
515 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
485 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
2
votes
0answers
40 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
51 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
25 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
128 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
299 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
61 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
128 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
130 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 ...
6
votes
3answers
638 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 ...
3
votes
2answers
711 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
2answers
227 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
186 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
46 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
119 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
116 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
1answer
377 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
308 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
368 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
347 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 ...
3
votes
0answers
214 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 ...