Portal Community

Widget Preview

Quick Launch
Start Leave Request
Start Purchase Order
Go to Inbox
Open HR Portal

Shortcut Action Types

Action TypeConfigBehavior
startWorkflowworkflowId: stringTriggers the specified workflow with no input data. User sees a confirmation and the execution appears in History.
openAppappId: stringOpens the App Studio application in WorkDesk's main content area.
navigatepath: stringNavigates to any WorkDesk path (e.g., /workdesk/inbox).
urlurl: stringOpens an external URL in a new tab. Useful for external systems or portals.

Shortcut Configuration JSON

{
  "id": "w-quicklaunch-1",
  "type": "QuickLaunch",
  "col": 0, "row": 2,
  "w": 1,   "h": 1,
  "config": {
    "title": "Quick Launch",          // optional widget title
    "shortcuts": [
      {
        "label": "Start Leave Request",
        "icon": "fa-play",
        "action": { "type": "startWorkflow", "workflowId": "wf-leave-001" }
      },
      {
        "label": "Start Purchase Order",
        "icon": "fa-play",
        "action": { "type": "startWorkflow", "workflowId": "wf-po-002" }
      },
      {
        "label": "Go to Inbox",
        "icon": "fa-inbox",
        "action": { "type": "navigate", "path": "/workdesk/inbox" }
      },
      {
        "label": "Open HR Portal",
        "icon": "fa-external-link-alt",
        "action": { "type": "url", "url": "https://hr.acme.com" }
      }
    ]
  }
}

Starting a Workflow from a Shortcut

When a startWorkflow shortcut is clicked:

  1. A confirmation dialog appears: "Start Leave Request?"
  2. User confirms → WorkDesk calls POST /api/workflows/{workflowId}/execute
  3. Execution starts in the background
  4. A success notification appears: "Leave Request workflow started"
  5. The execution appears in Workflow History with status running
Workflow Permissions

Employees can only start workflows they have permission to trigger (configured by the workflow designer). If an employee clicks a Quick Launch shortcut for a workflow they lack permission to run, a "Permission denied" error is shown.