Contents

Workspace Day

workspace_day · Nodes · Data

Reads the run's workspace timezone, working day, and calendar hours.

Workspace Day reads the timezone, working day, and calendar hours from Settings → Preferences → Your day in the workspace that owns the run. It reads the current settings each time it runs, including in the background without a viewer. Saving or publishing a workflow does not capture these settings.

Tag: workspace_day. No configuration.

Input and output#

Connect input to the preceding step. The connection determines when Workspace Day runs; the node does not use the input value.

output contains an IANA timezone and two windows in local HH:MM time. A window ending at midnight uses 24:00.

{
  "timezone": "Europe/Prague",
  "working_day": { "start": "09:00", "end": "19:00" },
  "calendar_window": { "start": "06:00", "end": "24:00" }
}

Examples#

Connect output to the Send Notification node's input. In the body template, Working hours start at {{ input.working_day.start }} ({{ input.timezone }}). uses the workspace's current settings.

Connect output to the JavaScript node's input to get the current local time:

return DateTime.now({ timeZone: inputs.input.timezone }).toISO({ local: true });

A JavaScript node can also read the same object directly with await verdalia.api.workspace.day().

Inputs

  • inputRequired

Outputs

  • output

Configuration

FieldTypeRequiredDescription
base_configrecordNoShared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow).