BaseVN - App Timeoff Trigger icon

BaseVN - App Timeoff Trigger

Starts the workflow when BaseVN Timeoff webhook events occur

BaseVN - App Timeoff Trigger

AI-generated

Summary

Triggers a workflow when a BaseVN Timeoff webhook event occurs, returning the event payload based on a user-defined selector.

Inputs

  • path (required) — The URL path for the webhook. Defaults to 'webhook'.
  • responseSelector — Selects the structure of the returned data: 'Full Payload' includes headers and body, 'Body Only' returns the raw body (default), or 'Leave Request Info' returns a simplified object with specific leave fields.

Output shape

An array of items containing the webhook data, structured according to the response selector.

When 'Leave Request Info' is selected, the output is a simplified object containing fields like id, user_id, username, leave_type, dates, duration, reason, status, approver details, and timestamps. When 'Full Payload' is selected, headers and body are returned together.

Examples

Example 1: Monitor for new leave requests

Set responseSelector to 'Leave Request Info' to receive a clean object with fields like user_id, leave_type, dates, and status.

Example 2: Log raw webhook data

Set responseSelector to 'Full Payload' to capture headers and the complete body for debugging or detailed processing.

Example 3: Standard workflow start

Use default settings (responseSelector = 'Body Only') to receive the raw body data of the webhook event.

Links

Discussion