OKRunit Trigger
AI-generatedSummary
Polls OKRunit for new approval requests or approval decisions according to configured schedule and filters, returning matching approval records
Inputs
- pollTimes — Times at which polling should occur
- triggerType — Event type that triggers the poll (new approval request or approval decided)
- newApprovalStatus — Filter to trigger only for approvals with this status
- newApprovalPriority — Filter to trigger only for approvals with this priority
- statusFilter — Filter to trigger only on specific decision types (approved, rejected, any)
- priorityFilter — Filter to trigger only for approvals with this priority
- cronExpression — Custom cron expression for scheduling
- value — Multiplier for the unit (e.g., every X)
- unit — Time unit for the multiplier (minutes or hours)
Output shape
a list of items, each being the approval object returned by the API
May be empty; pagination limited to 50 results per request; results are returned as the main output and will be passed downstream
Examples
Example 1: Hourly check for new high‑priority approval requests
triggerType: newApproval; newApprovalPriority: high; pollTimes: everyHour; value: 1; unit: hours
Example 2: Daily check for any decision type at 14:30
triggerType: approvalDecided; cronExpression: 30 14 * * *; pollTimes: everyDay; hour: 14; minute: 30