Scheduled Apex in Salesforce – Part 2: Schedule from Apex, Cron Expressions & What You Can Run

Опубликовано: 20 Май 2026
на канале: Code With Sally
182
3

Learn how to schedule Apex jobs in Salesforce using code! In this session (Part 2), we’ll cover how to use Apex to schedule jobs, understand cron expression syntax, and explore what types of operations can or can't run inside the execute() method. We’ll also demonstrate a real example of a failed HTTP callout and how to fix it using asynchronous callouts — plus tips on chaining jobs and monitoring them.

📌 What You’ll Learn:
Scheduling Apex classes using code
Cron Expression Syntax + Fun Practice
Monitoring Scheduled Jobs
What can run inside Scheduled Apex
Demonstrate how synchronous callouts fail (and how to fix)
Warnings on chaining jobs

🎓 Watch Part 1 here:    • Scheduled Apex in Salesforce — Part 1 | Wh...  

📂 GitHub Code:
https://github.com/CodeWithSally/Code...

🕒 Timestamps:
00:00 – Session Opening & Welcome
01:48 – Intro: What We Covered in Part 1
05:08 – Schedule Apex Using Code (Demo + CronTrigger Object)
14:16 – Cron Expression Syntax Explained
24:40 – Cron Expression Practice + Homework
40:50 – How to Monitor Scheduled Jobs
43:35 – What Can You Run in Scheduled Apex?
48:43 – Synchronous vs Asynchronous HTTP Callouts (Demo)
54:09 – Job Chaining – What You Should Know
54:56 – Session Wrap-Up & What’s Next

👉 Don’t forget to like 👍, subscribe 🔔, and share with fellow developers!

#Salesforce #Apex #ScheduledApex #CronExpression #SalesforceDeveloper #AsynchronousApex #SalesforceScheduler #TriggerAutomation #CodeWithSally
============================================================
Music by Bensound.com/royalty-free-music
License code: QI7HAEE5AW6QK7H5

Music by https://www.bensound.com
License code: FJSEBAYEENL4TPGD