Skip to main content

GetWorkflowUserRole

Use this function to retrieve a list of user roles for a specified Workflow process and step. The function will return a list indicating whether the currently connected user is an OWNER or APPROVER of the specified step. If the user is both an OWNER and APPROVER, then both roles are returned in the list.

Syntax:

GETWORKFLOWUSERROLE(Process, Step[,Symbol])

where:

  • Process is the name of an active Workflow process. If the process name contains spaces, enclose it in double quotation marks (" ").
  • Step is the name of the Longview Workflow step within the process. If the step name contains spaces, enclose it in double quotation marks (" ").
  • Symbol is optional for hierarchical steps, and is the symbol for the hierarchical step. Symbol is not used for simple steps.

Syntax example:

Create Variable sWFRole[] as STRING

Set Variable sWFRole = GETWORKFLOWUSERROLE(MonthEndProcess, "ABC Canada", E10000)

Was this article helpful?

We're sorry to hear that.