The following sample collection demonstrates how to use the loopMessage and loopMessageRequest classes to request DocGen Package runs, either immediately or in the future.
Sample name | Description |
---|---|
InTrigger | Demonstrates how to use the loopMessage and loopMessageRequest classes to run multiple DocGen Package requests in the future, asynchronously and in the background, by using an Apex trigger. |
InTriggerWithAttachments | Demonstrates how to use the loopMessage and loopMessageRequest classes to run multiple DocGen Package requests in the future, asynchronously and in the background, by using an Apex trigger, and include attachments from related objects. |
MySender | Demonstrates how to use the loopMessage and loopMessageRequest classes to run multiple DocGen Package requests immediately, synchronously and in the foreground, by using a custom button. |
MySenderWithAttachments | Demonstrates how to use the loopMessage and loopMessageRequest classes to run multiple DocGen Package requests immediately, synchronously and in the foreground, by using a custom button, and include attachments from related objects. |
For more information