This gives developers a programmatic path into CloudFiles Document Generation, whether the trigger comes from inside Salesforce, from an external application, or from an asynchronous platform event.

Apex Actions

Apex Actions trigger DocGen programmatically inside Salesforce through Apex or invocable actions, so document generation can be embedded into custom Salesforce logic seamlessly.

REST APIs

REST APIs generate documents from external apps through authenticated API calls, connecting DocGen to ERPs, websites, or middleware without rework.

Event-Driven Triggers

Event-Driven Triggers support async and bulk generation using platform events and callbacks, scaling high-volume document generation smoothly without slowing operations.