cancel
Showing results for 
Search instead for 
Did you mean: 

Locate Nintex Forms in SharePoint via PowerShell

aaron_labiosa
Nintex Newbie
26 8 5,118

Products: Nintex Forms 2010, Nintex Forms 2013

We sometimes get asked if there is a way to count the number of Nintex Forms in each Site Collection farm wide.

This PowerShell script will output each site collection URL in a SharePoint farm with a count of how many Nintex Forms are present in each site Collection.

PowerShell Script
  1. Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
  2. Get-SPSite | Get-SPWeb | ForEach-Object {
  3. Write-host "Beginning search for Nintex Forms in :" $_.url
  4. Write-host "Number of Nintex Forms in $($($($_.Lists["NintexForms"]).Items | ?{$_.ContentType.Name -eq "Document"} | ? {$_.level -notcontains "Draft"}).Count)"
  5. }

Version History and other scripts can be found here: http://alps.codeplex.com

8 Comments
brightlight
Nintex Newbie

Is there a way to export the latest version of the form to a folder?

Chris_Ben
Nintex Newbie

Good man Aaron!  Are you still updating your workflow analyzer tool?  This could be a welcome addition to that as well.

aaron_labiosa
Nintex Newbie

I have not had to make any updates in a couple of years now (other than moving the code over to GitHub and Azure). I am not sure if this would make sense in the tool. Currently the tool is 100% standalone and does not communicate with SharePoint/Nintex in any way.

Chris_Ben
Nintex Newbie

Hey Aaron, is there a way to specify the name of the list the form appears in?

aaron_labiosa
Nintex Newbie

Yeah, I believe you can add a where clause in there. I will have a look later.

Jeff-SP-Admin
Nintex Newbie

How can I find a list of Nintex workflows being used in all my site collections in SharePoint Online/O365 using PowerShell? I have seen a few solutions referenced back in 2015 for on-prem. Do you have an updated solution for O365/SharePoint online? 

Any help would be greatly appreciated.

keninkman
Nintex Newbie

Very Helpful I added a bit to it that someone may find helpful.   I lookup the list and display the name of the workflow.

 

Get-SPSite -Limit ALL | Get-SPWeb -Limit ALL | ForEach-Object {
  foreach ($item in $_.Lists["NintexForms"].Items)
  {
      #Write-host "Beginning search for Nintex Forms in :" $_.url
      $List = $_.Lists | ? {$_.ID -eq $item["FormListId"]}

      if($List -ne $null )
      {
        if ($item.Level -eq "Published") 
        {
            $_.url + " " + $List.Title 
        }
      }
  }
}

 

 

 

eiben
Nintex Newbie

@Jeff-SP-Admin : I wrote a series of posts about finding where Nintex was added in O365 as well as all workflows. You might want to have a look at: https://community.nintex.com/t5/Community-Blogs/Migrate-your-tenant-to-another-data-center-3-of-3-wh...