Hi everyone! Recently I needed to come up with a way to conditionally show or hide a set of HTML markup (or ASP.NET markup – web parts / web controls, could be anything) on a master page. Decided to create a web control based on SharePoint audiences functionality. Principle is dead […]
Continue reading »Month: November 2016
SP2013 top navigation – reposition dynamic flyout content if it goes off screen
Hi everyone! Lately my top navigation submenus have been growing rather long in terms of items shown, and this appeared to be causing problems for clients with lower resolution screens, as items dynamic flyouts would go off screen, either to the right, or down to the bottom. I’ve come up […]
Continue reading »Yi 2 action camera in action. Evening drive, hyperlapsed
So, recently we bought a Yi 2 action cam. I’m hoping to film with it in a whole bunch of different settings, but for now we just did a built-in timelapse video function and filmed our evening commute from Macclesfield, Cheshire to Biddulph, Staffordshire. Here’s the result
Continue reading »SP2013 – Get all 2010 and 20130 style custom workflows associated with lists in web application
Hello everyone! It’s time to do some reporting on our farm – how about listing all of the workflows you have implemented throughout? It’s quite easy to do with our trusty PowerShell! So, without further ado here it is:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
[system.reflection.assembly]::LoadWithPartialName("Microsoft.SharePoint.WorkflowServicesBase") | out-null $webApp = Get-SPWebApplication https://abc.contoso.com $webApp.Sites | Foreach-Object { $_.AllWebs | Foreach { $wfSubscriptionManager = new-object Microsoft.SharePoint.WorkflowServices.WorkflowServicesManager $_ $wfSubscriptionService = $wfSubscriptionManager.GetWorkflowSubscriptionService(); $webUrl = $_.Url $_.Lists | Foreach { $_.WorkflowAssociations | Foreach { if ($_.Name -notlike "*(Previous Version*") { Write-Host "[2010] SiteURL: " $_.ParentWeb.Url ", List name: " $_.ParentList.Title ", Workflow name: " $_.Name } } $listTitle = $_.Title $wfSubscriptionService.EnumerateSubscriptionsByList($_.ID) | Foreach { Write-Host "[2013] SiteURL: " $webUrl ", List name: " $listTitle ", Workflow name: " $_.Name } } } } |
Basically, we need to load up “Microsoft.SharePoint.WorkflowServicesBase” dll to be able […]
Continue reading »