Disabling Flow and PowerApps buttons

****UPDATE 13/02/2020****

Some of you reported that some of the script provided were not working, so I decided to try it. The conclusion that I can obtain is the following:

I tried with the command “Set-SPOSITE <urltosc> -DisableAppViews Disable -DisableFlows Disable” in a Teams Site Collection, but I receveid the following error:

setsposite but as you can see, the error throwed but something related to groups, so I decided to execute this PS with a SC which is based in a classic template:

setspositesucc

and it succeed, so the only conclusion that I extract from here, there are certain parameters not activated by design in Teams/O365 TS templates. I hope we will hear something from Microsoft to solve that mistery

***************************

The modern library experience is going to be the default view in a few weeks. But in this modern view I have found that many customers prefer to customize this view, for example to not to show Flow and PowerApps options, so you have the opportunity to disable the buttons for this particular list or event at site level. Obviously you could disable the services on tenant level.

Disable those buttons

Disabling Flow and PowerApps is possible but only on a web (or site collection) level. You can do so with PowerShell as described on Technet. As the sample only describes to disable Flow, and it is not using PnP-PowerShell I wrote a quick sample to achieve this using PnP-PowerShell. Besides the DisableFlows property there is a DisableAppViews property to disable the PowerApps button on the list as well! So your code would look something like the following

Connect-PnPOnline –Url https://tenant.sharepoint.com/sites/urlsc –Credentials (Get-Credential)
$ctx = Get-PnPContext
$ctx.Site.DisableAppViews = $true;
$ctx.Site.DisableFlows = $true;

Don’t worry about your existing Flows and PowerApps, because it will keep working and you are still able to start Flow and PowerApps interfaces. But, as you can imagine, no longer see the buttons. If you want to change again to show the buttons, set the properties DisableAppViews and DisableFlows to $false

Take into account that this values are only for site level, if you want to set them at web level, use the $ctx.Web and you are good to go.

New Flow templates for Planner

Do you need to automate your tasks into Planner and don’t know how to do it? Today, is your lucky day, recently, Microsoft Flow is updating their flow templates to cover migration tasks to Planner and able to manage them from there.

So, the new available templates are the following:

Create planner tasks for flagged emails in Office 365: with this flow, will be possible to create tasks in Planner from all the Outlook mails that have been flagged in our inbox. Every flagged mail, will be created and assigned to us. Great start 🙂

On new SharePoint items create Planner task and assign to creator: Most of my customers demand this, they have a task list in SharePoint, and they want a solution to automate this “migration” to Planner. So, when new items are added to the SharePoint task list, new item will be created in Planner and assigned to the person who created the task.

And finally, an option to migrate from the competitor Trello to Microsoft Planner: will be possible to get a task created in Microsoft Planner for each card added to a list in Trello.

I hope that Microsoft will continue updating those kinds of templates to offer new features and new possibilities.

till next time!