Skip to main content
Search Again

We think these articles could help you:

    See More
    Nintex Knowledge Base

    Finding Allowed Actions Through PowerShell

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

    Solution
    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] 
    
    GO
    
    DECLARE @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