Bulk Send Gestoria Template
gestoria_template_bulk_sendSend the same document request template to up to 500 client workspaces in a single call. Respects client opt-out and allows period overrides.
Instructions
Send the same document request template to up to 500 client workspaces in one call. Each spawned request triggers the per-client notification handler (email + in-app). Honours allowGestoriaCommunications=false on the client user doc (opt-out). Uses periodOverrides to plug runtime values (quarter/year/month) into template variables. Returns a per-client outcome with success count, failures, and total wall-clock duration. Trust Area: RGPD — recipients must already have granted accountant access. Example: templateId='tpl_iva_q', clientWorkspaceIds=['ws_a','ws_b','ws_c'], periodOverrides={quarter:3, year:2026}. / Envia la misma plantilla a hasta 500 espacios cliente en una sola operacion. Respeta opt-out allowGestoriaCommunications=false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| templateId | Yes | Template ID (from `gestoria_template_create`) / ID de la plantilla | |
| clientWorkspaceIds | Yes | Target client workspace IDs (1-500) / IDs de espacios cliente destino | |
| periodOverrides | No | Override template period variables in the bulk send / Sobrescribir variables de periodo (trimestre, ano, mes) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | Yes | ||
| failed | Yes | ||
| totalDuration | No | Wall-clock duration in ms |