--- title: "Workflow Actions" slug: "workflow-actions" description: "This is a list of actions that can be used in RapidIdentity Connect to interact with RapidIdentity Portal's Workflow data." tags: ["RapidIdentity ", "Connect", "Actions", "Portal", "Workflow"] updated: 2022-06-03T19:48:31Z published: 2022-06-03T19:48:31Z canonical: "help.rapididentity.com/workflow-actions" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.rapididentity.com/llms.txt > Use this file to discover all available pages before exploring further. # Workflow Actions ### getPortalEntitlementId Get the ID of entitlement based on its name. | Property | Value | Description | | --- | --- | --- | | connection* | expression, variable | the Portal connection definition | | entitlementName* | text, expression, variable | the name of the entitlement | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript nameOfEntitlement = "LabMonitor" entitlementID = getPortalEntitlementId(connection, nameOfEntitlement) ``` ### startPortalWorkflow Start a Portal workflow, returning the workflow request ID. | Property | Value | Description | | --- | --- | --- | | connection* | expression, variable | the Portal connection definition | | type* | choice (GRANT, REVOKE), text, expression, variable | the workflow type | | recipientId* | text, expression, variable | the idautoID of the workflow recipient | | entitlementId* | text, expression, variable | the ID of the workflow entitlement | | comments | text, expression, variable | optional workflow comments | | previousRequestId | text, expression, variable | the ID of the workflow request that granted the entitlement to be revoked (required for REVOKE of a multi-bound entitlement) | | formData | expression, variable | optional Record or object containing form data | | returnVariable | expression, variable | name of the variable to be assigned to the return value | ```actionscript nameOfEntitlement = "LabMonitor" entitlementId = getPortalEntitlementID(connection, nameOfEntitlement) workFlowStarted = startPortalWorkflow(connection, "GRANT", "cn=testuser1,OU=People,DC=test,DC=idauto,DC=lab", entitlementId, "Start the LabMonitor Workflow") ```