We've had a couple of people request the ability to pull back information on the workflows in their farm. This script will return the results of all workflows found inside of the Nintex databases associated with your farm.
Â
There are a couple of things to note:
Â
- Workflows that have been designed, but never run will not show in the results (no record of them in the Nintex DBs)
- If you have performed a recent purge on the Nintex databases, the workflows may not show up.
- If you receive errors when running the script, please allow it to run to completion. The script uses what It finds in the Nintex DB and resolves certain information (SiteID > Site collection URL, Etc.) and may error if a Site Collection/Site/List and/or workflow is not found. This will not affect the results of the workflows that are found.
Â
Â
PowerShell |
---|
##########################################################################################Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â #Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â ### Nintex Workflow Statistics Query ### # # #Â Â Â Â Â Â Â Please ensure you run this script as Administrative account that has rights to each Nintex database #Adding SharePoint Powershell Snapin # The Line below will suppress error messages, uncomment if you are seeing errors but still receiving results. #$ErrorAction = 'silentlycontinue'Â # Grab Nintex Config database name $CFGDB = xNintex.Workflow.Administration.ConfigurationDatabase]::OpenConfigDataBase().Database # Creating instance of .NET SQL client # Begin SQL Query
# Call to find all Nintex Content Databases in the Nintex Configuration Database, then execute the above query against each. # Creating a table #Adding Query results to table object #Print results on screen |
 |