Skip to main content
insightsoftware Documentation insightsoftware Documentation
{%article.title%}
Published:
Was this article helpful?
0 out of 0 found this helpful

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 WFRole[] AS String

SET VARIABLE WFRole = GETWORKFLOWUSERROLE(MonthEndProcess, "ABC Canada", E10000)

Published:

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 WFRole[] AS String

SET VARIABLE WFRole = GETWORKFLOWUSERROLE(MonthEndProcess, "ABC Canada", E10000)

For an optimal Community experience, Please view on Desktop