Run Triggers
Control how Pandium integrations sync data with cron, manual, webhook, and API run triggers, including payload handling and debouncing per tenant.
What Are Run Triggers?
Run Triggers In Depth
Run Triggers in Integration Code
const runTriggers = JSON.parse(process.env.PAN_CTX_RUN_TRIGGERS)
const payloads = []
for (const trigger of runTriggers) {
// Only webhooks and API triggers have payloads
if trigger.mode === 'webhook') {
const data = fs.readFileSync(trigger.payload.file, 'utf-8')
// do something with data from payload
}
}Run Trigger Examples
Last updated
Was this helpful?