Skip to main content
Nintex Community Menu Bar

Finding Allowed Actions Through PowerShell

  • March 26, 2021
  • 0 replies
  • 9 views

KB_Admin
Nintex Employee
Forum|alt.badge.img+8

Topic

Is it possible to find all of the allowed actions within the SharePoint environment via Powershell or the NWAdmin command?

 

Instructions

While there is not an NWAdmin command to retrieve this information, it can be done partially through a Powershell call to the Nintex Configuration database. Powershell will need to call the the 'dbo.IsActivityAllowed' stored procedure within the Nintex Configuration database and pass it the Site ID, Web ID, action Activity Type and Activity Assembly. The following is an example of how the stored procedure is formatted:
USE [NW2013DB] GODECLARE @return_value int, @Allowed bit EXEC @return_value = [dbo].[IsActivityAllowed] @SiteID = '84D84A77-28BD-454A-895A-8463695AB44D', @WebID = 'F8D1C8E0-9C8C-450E-BE24-BD8A007C83A6', @ActivityType = N'Microsoft.SharePoint.WorkflowActions.DelayUntilActivity', @ActivityAssembly = N'Microsoft.SharePoint.WorkflowActions, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c', @Allowed = @Allowed OUTPUT SELECT @Allowed as N'@Allowed' SELECT 'Return Value' = @return_value GO