Netrix acquires PSC Group, a provider of cloud-focused application development and modernization services. The acquisition scales Netrix’s cloud application development and data intelligence practices for Microsoft Azure.
Year: 2021
Cancel all running flow runs for a flow in an environment
I am repeating a sample found within the CLI for Microsoft 365 examples which was insanely helpful for me.
I created a bulk update of about 2000 items within a SharePoint list – each one triggered a flow and with 2000 flows running at the same time, they started to time out, fail and just not complete – I needed to cancel all of them and start again
I found the code block on the M365 CLI site as i listed above.
You need the following
Install the M365 CLI in windows
npm i -g @pnp/cli-microsoft365
Log into m365 through a browser using
m365 login

Then run the following
$flowEnvironment = 'YourEnvironmentId'
$flowGUID = 'TheFlowGUID'
$flowRuns = m365 flow run list --environment $flowEnvironment --flow $flowGUID --output json | ConvertFrom-Json
foreach ($run in $flowRuns) {
if ($run.status -eq "Running") {
Write-Output "Run details: " $run
# Cancel all the running flow runs
m365 flow run cancel --environment $flowEnvironment --flow $flowGUID --name $run.name --confirm
Write-Output "Run Cancelled successfully"
}
}
The Environment and flow GUID can be found within the URL of your flow
Within the flow manage, open your flow – the references we are looking for are in the URL
The environment = ‘Default-8a47f942-xxxx-yyyy-a2c7-ced012b09a0a’
The flow GUID = ‘f0d07662-9ab2-bbbb-aaaa-dd11f2f47a47’

The flow runs and the flow is cancelled.

Removing the social bar (“Like and Views”) from a SharePoint Online page
I came across the simple tip and thought it worth sharing
When you have a “Social Bar” on your SharePoint Page and you want it removing – you can do so at the Site or Tenant Level.
I found the following tip on StackOverflow for removing from a site
#---Disable Social Bar on Site Pages
Connect-SPOService -Url https://yourdomain-admin.sharepoint.com
$site = "https://yourdomain.sharepoint.com/sites/sitecollection"
Set-SPOSite -Identity $site -SocialBarOnSitePagesDisabled $true
Before

After
