modGetExecutePermissions

See Also

[@WFTableName =] 'name', 
[@RowID =] 'id',
[@UserName =] 'user_name'

Determines whether the current user is a member of a role that has execute permissions for a workflow action. Exists in the solution database.

Parameters

[@WFTableName =] 'name'

Name of the workflow table.

[@RowID =] 'id'

ID of the row that defines the workflow action.

[@UserName =] 'user_name'

Domain\user name for the current user.

Return Value

Returns 1 if execute permissions are granted; otherwise, returns 0.

Example

The following example checks execute permissions for the workflow action with id = 18.

EXEC modGetExecutePermissions 'IssuesWorkflow', 18, 'somedomain\someuser'