Recipes
About Recipes
Recipes are complete, runnable Apex code examples that show how to combine the pipeline services to solve a specific use case end-to-end. Each recipe covers the full call path and email path, including paging, transcript access, permission considerations, and governor limit guidance.
Recipes are written for subscriber org Apex — they use the callcoreio. namespace prefix and the global service API. They are intended as starting points: copy, adapt to your data model, and layer in your own business logic.
All recipes assume the package is installed and at least one call source has been synced. If you are writing code that runs in a background context (Queueable, Batch, Flow-invoked Apex), use bypassRunningUserPermissions() on GetCallSegments and supply explicit source IDs via fromSources() — automation users typically do not hold CallCore user permissions.
Available Recipes
| Recipe | What it demonstrates |
|---|---|
| Opportunity: calls, transcripts and emails | Full pipeline retrieval for an Opportunity — scope resolution, phone number gathering, paged call segment retrieval with per-page transcript fetching, and parallel email retrieval. Covers paging loops, governor limit guidance, and scope narrowing. |