Tag Info

Hot answers tagged

8

The Cloud Service Office 365 is being updated regulary. The current SharePoint 2013 has the Version 15 and the next Generation of SharePoint is the Version 16. So in Office 365 you will find the first new Frontend Features of the next SharePoint On Premise Generation. Also in the SDK for SharePoint 2013 and Office 365 you will find the first new functions ...


5

Alternative 1 Your App Catalog site can be configured at web application, NOT at site collection level. Since an App Catalog is scoped to a web application, all apps that you want to make available have to be in the App Catalog site for that web application, and eventually to all site collections under it. However, you can have more than one App Catalog ...


4

I followed this example: https://www.nothingbutsharepoint.com/sites/eusp/pages/use-font-face-in-rich-text-editor-of-sharepoint-2010.aspx It worked for me in our O365 site collection with the only exception that I had to bump up the class to 15. .ms-rteFontFace-15 { -ms-name: "Bangers"; font-family: "Bangers", arial, helvetica, sans-serif; }


3

You can try this solution: Open your site in SharePoint Designer, check out and open the default masterpage in advanced mode (assume it is seattle.master). Scroll down to ending </body> tag. Add the following block of code above: <SharePoint:ScriptBlock runat="server"> if (typeof jQuery == 'undefined') { document.write('<script ...


3

It's the preparation for SP2016. Microsoft will release new SharePoint upgrades/features on O365 before the on-premise versions.


2

You get this error because of the cross site scripting protection. To work around it you have to use sharepoints own library for cross-site access, namely "SP.RequestExecutor.js". Also make sure your app has tenant scope permissions. var scriptbase = $scope.hostweburl + "/_layouts/15/"; $.getScript(scriptbase + "SP.RequestExecutor.js", function(){ var ...


2

Use the below code function getPersonalUrl() { var context = SP.ClientContext.get_current(); var peopleManager = new SP.UserProfiles.PeopleManager(context); userProfileProperties = peopleManager.getMyProperties(); context.load(userProfileProperties, 'PersonalUrl'); context.executeQueryAsync(success, fail); } function success(){ var mySiteUrl = ...


2

According to the scalar properties to SP.WebInfoCreationInformation there is no parameter for that. The available properties are the ones you use. So you'll probably have to make another call after the web is created, and set the UseShared in Microsoft.SharePoint.Client.Navigation to true.


2

The solution as i found recently, is to use the 2010 workflow to send the email, this is not bound by the restrictions that the 2013 workflow is in only sending to users known by the tenancy (i.e. those with accounts). In my case i did all the main bulk of the workflow in 2013 with loops and all the nice new features, then used a really simple parameter ...


2

Since CSOM supports Request Batching that allows to minimize the number of messages that are passed between the client and the server, it matters how operations are submitted to the server using ClientContext.ExecuteQuery method: ClientContext.ExecuteQuery method performs the actual request to the server, it could contain single or multiple operations. So, ...


2

Please apply this css on your page. <style> #sideNavBox { DISPLAY: none } #contentBox { margin-left: 0px } </style> EDIT: As you need to hide Quick launch only on one page, please add this css to only that page(If you are using SharePoint Designer). Just edit your page in SharePoint Designer. However, if you don't want to edit the page in ...


2

You can do it all from C# using the excellent post found here: http://blah.winsmarts.com/2014-4-Get_list_of_site_collections_using_CSOM_in_Office365.aspx This example is, I believe, from within a SharePoint app but you can do it similarly from a console app. First you'll need to add a reference to Microsoft.Online.SharePoint.Client.Tenant.dll which you ...


2

I would continue to use metadata tags but use actual SharePoint groups to limit the permissions. Give each department their own document library where the respective group contribute permissions and other departments have read permissions as necessary. Then you can use a content query web part to roll up the documents and not have to worry about ...


2

I believe it is not new that the cloud is updated regularly and Office 365 has seen "16" references for quite a while now. I personally don't see the online versions as a specific version, but as the "online" version which may map to SharePoint 2013 at one time, but gradually evolve either to a new version of SharePoint, or as its own cloud product. Master ...


1

The SharePoint Online PowerShell Module is extremely limited. As for CSOM, it seems that the UserProfiles namespace does not include any classes or methods to set the subtype.


1

I got the issue resolved by using view state for the Context Token property public string ContextToken { get { return ViewState["ContextToken"] != null ? Convert.ToString(ViewState["ContextToken"]) : String.Empty; } set { if (value != null) { ...


1

You are correct that you cannot publish an app to the store that requests FullControl. However, you can upload any app to the App Catalog in your tenancy. (Also, be aware that Autohosted apps have been discontinued. MSDN has guidance on transitioning to Provider-hosted.)


1

I found out that a user needs read rights on the app catalog to be able to see the app in "Apps from your organization". This also applies to the list item in the app catalog. So I stopped the permission inheritance on the list item for my app in the app catalog, and only gave specific users of my sitecollection read rights on the list item. I still can't ...


1

You would have to resort to calling the PowerShell, and using the Get-SPOSite cmdlet to get all the site collections. The following will return the url of all site collections: var runspace = RunspaceFactory.CreateRunspace(); runspace.Open(); var pipeline = runspace.CreatePipeline(); pipeline.Commands.AddScript( "Import-Module ...


1

Microsoft is going to deprecate Sandbox solutions, so you shouldn't consider it for new development. Visual Studio Options - Remote/app event receiver is one option, explorer more on this here. However, you also have the option of Visual Studio SharePoint Workflow App No code solution - If you are not comfortable with Visual Studio programming then you ...


1

So now I feel really stupid. I went and look at the workflow and saw that I could select "Start this workflow to approve publishing a major version of an item." and of course that works perfectly.


1

Maybe it's because all the SharePoint JavaScript-Files are not ready when you try to access your context. Instead of document.ready or similar, try this: _spBodyOnLoadFunctionNames.push("myCustomFunctionName"); //waits for all SP-Scripts function myCustomFunctionName() { // My custom functionality }


1

Not sure why you're getting the access denied error, but you should be using the cross-domain library, SP.RequestExecutor.js, when trying to SharePoint data from within an app. Try calling myFunction with the following: var scriptbase = hostweburl + "/_layouts/15/"; $.getScript(scriptbase + "SP.Runtime.js", function() { $.getScript(scriptbase + ...


1

I tried your issue and unable to reproduce it. I use an Enterprise E3 license and on my team site I have checked the default behaviour in advanced settings: To enable editing I need to switch from viewing to editing before start: When this is done, it works like a charm. But I don't use Power View - which I'm afraid to say isn't supported: You can ...


1

You could utilize CSOM TimeZone.UTCToLocalTime method to convert the specified date from Coordinated Universal Time (UTC) to local time. Example (function(){ var context = SP.ClientContext.get_current(); var web = context.get_web(); var regionalSettings = web.get_regionalSettings(); var dueDate = new Date(); //set DueDate to [now] var ...


1

The problem is that because you're in a SharePoint Hosted app, you're in a separate domain than SharePoint. Since the user profiles belong to the SharePoint host domain, and not the app domain, getting user profiles from the current context will return nothing. In order to get them, you need the cross-domain library: SP.RequestExecutor.js. Now, I've not ...


1

You can use Sharepoint client object model to display the list. Sample code: var targetSite = new Uri("site"); var login = "username"; var password = "password"; var securePassword = new SecureString(); foreach (char c in password) { securePassword.AppendChar(c); } ...


1

First(); is used to get first element from LINQ C# query Have you tried adding namespace using System.Linq; ?


1

Take a look at this blog. It explains how to attach a workflow created in the app to a list in the host web. Attaching content types is quite a different proces than workflows, but it should give some ideas. Something along the lines of this (warning, my JSOM might be off, so check the syntax): var clientContext = new SP.ClientContext.get_current(); var ...


1

I'm doing exactly the same thing as you describe. My scenario is that I have a list of about 400 subscribers and another list where new articles are created. To get the functionality you describe, use a SharePoint 2013 workflow and use the HTTP web service action to get the data from your subscriber list and iterate through. I followed this article in the ...



Only top voted, non community-wiki answers of a minimum length are eligible