Salesforce Apex: Queueable Apex (Part 2) – Chaining, Callouts & Testing

Опубликовано: 21 Май 2026
на канале: Code With Sally
511
9

💬 Welcome back to Code With Sally!

In this final part of the Queueable Apex series, we go beyond the basics to explore practical and powerful capabilities of Queueable jobs in Salesforce.

🎯 **What You'll Learn**:
Why and how to *chain Queueable Apex* jobs
Understanding the *QueueableContext* parameter
**Real-life code examples**: chaining, callouts, and testing
Making *HTTP callouts* from Queueable jobs
When to choose *Queueable Apex vs. Future Methods*
How to *test Queueable jobs* in your unit tests

📌 **Timestamps**:
00:00 – Welcome & Channel Overview
3:06 – Why & When to Chain Queueable Apex Jobs
10:32 – Live Code Demo: Chaining (UpdateContactsQueue.cls, NotifyUserQueue.cls)
19:36 – What is QueueableContext? How to Get Job ID
23:29 – Q&A: Why Use Future vs Queueable
25:22 – Benefits of Chaining Queueable Jobs
30:36 – Testing Queueable Jobs (ContactUpdaterQueue.cls, ContactUpdaterQueueTest.cls)
40:22 – Making Callouts in Queueable Apex
44:34 – Q&A: Callout Syntax Discussion
46:48 – When to Use Queueable vs Future
53:06 – Final Thought: What to Use for Millions of Records?

📂 **GitHub Repo**:
[Code Samples for This Session](https://github.com/CodeWithSally/Code...)

🔔 Don’t forget to subscribe, like & comment with your questions!

#SalesforceApex #AsyncApex #QueueableApex #Chaining #UnitTesting #HTTPCallout #CodeWithSally
============================================================
Music by: bensound.com
License code: HMT77XJXMBQP1N4E

Music: https://www.bensound.com
License code: SVYHS4AMZE7YDMVQ