Fatskills
Practice. Master. Repeat.
Study Guide: TECH **Salesforce Process Builder: Criteria Nodes, Immediate & Scheduled Actions**
Source: https://www.fatskills.com/salesforce-certification/chapter/tech-salesforce-process-builder-criteria-nodes-immediate-scheduled-actions

TECH **Salesforce Process Builder: Criteria Nodes, Immediate & Scheduled Actions**

By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.

⏱️ ~8 min read

Salesforce Process Builder: Criteria Nodes, Immediate & Scheduled Actions

(A Zero-Fluff, Hands-On Guide for Admins & Certification Prep)


1. What This Is & Why It Matters

Process Builder is Salesforce’s point-and-click automation tool that lets you replace 80% of basic workflows and triggers without writing a single line of Apex. It’s the Swiss Army knife for admins—until you hit its limits (then you graduate to Flow or code).

Why This Matters in Production

  • Breaks if ignored: Without Process Builder, you’re stuck manually updating records, sending emails, or writing custom triggers for simple logic. This slows down your org and creates technical debt.
  • Superpower it gives you: Automate multi-step business processes (e.g., "When an Opportunity closes, update the Account, create a Task, and email the team") without code.
  • Real-world scenario:
    You inherit a Salesforce org where reps manually update "Next Steps" on Opportunities when they move to "Proposal" stage. Leadership wants an automated email to the sales manager 24 hours later if no follow-up Task is created. Process Builder can do this in 10 minutes—no developer needed.


2. Core Concepts & Components


1. Process Builder (PB)

  • Definition: A declarative tool to automate record changes, email alerts, field updates, and more based on criteria.
  • Production insight: PB is not real-time—it runs on a queue (like a slow conveyor belt). If you need instant actions, use Flow (before-save) or Apex triggers.

2. Process Definition

  • Definition: The container for your automation. Think of it like a recipe—it has ingredients (criteria) and steps (actions).
  • Production insight: Name processes clearly (e.g., Opp_StageChange_NotifyManager). Avoid generic names like "Process 1"—future admins (or you, in 6 months) will hate you.

3. Criteria Node

  • Definition: The "if this, then that" logic. Defines when the process should run (e.g., "Opportunity Stage = Proposal").
  • Production insight: Always add a "Stop" action after your criteria if you don’t want the process to keep evaluating other nodes. Otherwise, you’ll trigger duplicate actions.

4. Immediate Actions

  • Definition: Actions that fire right after the criteria are met (e.g., update a field, send an email, create a record).
  • Production insight: Immediate actions run in the order you define them. If Action A depends on Action B, put B first.

5. Scheduled Actions

  • Definition: Actions that run after a delay (e.g., "Email the manager 24 hours after the Opportunity moves to Proposal").
  • Production insight: Scheduled actions are not guaranteed to run at the exact time. Salesforce’s queue can delay them by minutes (or hours, if the org is busy). For critical time-sensitive actions, use Flow with a Pause element or Apex Schedulable.

6. Invocable Actions

  • Definition: Reusable actions (e.g., call a Flow, invoke Apex, post to Chatter) that you can trigger from PB.
  • Production insight: Use invocable Flows instead of PB for complex logic. PB is great for simple stuff, but Flows are more flexible and easier to debug.

7. Process Builder vs. Flow vs. Workflow Rules

Tool Best For Limitations
Workflow Rules Simple field updates, email alerts No multi-step logic, no scheduled actions (except time-based workflows)
Process Builder Multi-step automation, scheduled actions No loops, no error handling, hard to debug
Flow Complex logic, loops, error handling Steeper learning curve
  • Production insight: Migrate Workflow Rules to Flow. Salesforce is deprecating Workflow Rules (and eventually PB), so Flow is the future.

8. Governor Limits

  • Definition: Salesforce enforces limits to prevent abuse (e.g., max 2,000 PB executions per hour).
  • Production insight: PB counts against DML limits. If you update 100 records in a loop, you’ll hit limits fast. Use bulkified Flows instead.


3. Step-by-Step Hands-On: Automate Opportunity Follow-Ups


Prerequisites

✅ You have System Administrator permissions.
✅ You have a sandbox or dev org (never test in production!).
✅ You understand Opportunity Stages (e.g., "Proposal," "Closed Won").

Task:

When an Opportunity moves to "Proposal" stage, automatically: 1. Update the "Next Steps" field to "Follow up in 24 hours." 2. Create a Task for the Opportunity Owner to follow up.
3. Email the Sales Manager 24 hours later if no Task is created.


Step 1: Create the Process

  1. Go to SetupProcess Builder.
  2. Click New.
  3. Name: Opp_ProposalStage_FollowUp
  4. Description: Automates follow-ups when Opp moves to Proposal stage
  5. The process starts when: A record changes
  6. Click Save.

Step 2: Define the Object & Criteria

  1. Click + Add Object.
  2. Object: Opportunity
  3. Start the process when: A record is created or edited
  4. Click Save.
  5. Click + Add Criteria.
  6. Criteria Name: Opp_MovedToProposal
  7. Criteria for Executing Actions: Conditions are met
  8. Set Conditions:
  9. Field: StageName
  10. Operator: Equals
  11. Value: Proposal
  12. Advanced: Check Do you want to execute the actions only when specified changes are made to the record?
  13. This ensures the process only runs when Stage changes to Proposal (not every edit).
  14. Click Save.

Step 3: Add Immediate Actions

  1. Click + Add Action under the criteria.
  2. Action Type: Update Records
  3. Action Name: Update_NextSteps
  4. Record Type: Select the Opportunity record that started your process
  5. Set Field Values:
  6. Field: Next Steps
  7. Type: String
  8. Value: Follow up in 24 hours
  9. Click Save.
  10. Click + Add Action again.
  11. Action Type: Create a Record
  12. Action Name: Create_FollowUpTask
  13. Record Type: Task
  14. Set Field Values:
    • SubjectFollow up on Proposal: {!Opportunity.Name}
    • Assigned To ID{!Opportunity.OwnerId}
    • Related To ID{!Opportunity.Id}
    • Due Date OnlyTODAY() + 1
    • PriorityHigh
  15. Click Save.

Step 4: Add Scheduled Actions

  1. Click + Add Scheduled Action under the criteria.
  2. Set Schedule:
  3. Time Source: Opportunity: Created Date
  4. Offset: 1 Days After
  5. (This means the action runs 24 hours after the Opportunity is created—adjust if needed.)
  6. Click Save.
  7. Click + Add Action under the scheduled actions.
  8. Action Type: Email Alerts
  9. Action Name: Email_Manager_NoTask
  10. Email Alert: (If you don’t have one, create it first in Setup → Email Alerts.)
  11. Object: Opportunity
  12. Email Template: Proposal Follow-Up Reminder
  13. Recipients: Manager (or a specific user)
  14. Set Field Values (for the email):
  15. Related To ID{!Opportunity.Id}
  16. Click Save.

Step 5: Activate & Test

  1. Click Activate (top-right).
  2. Test in Sandbox:
  3. Create an Opportunity with Stage = Proposal.
  4. Verify:
    • Next Steps updates to "Follow up in 24 hours."
    • A Task is created for the owner.
    • 24 hours later, check if the manager gets an email.

4. ? Production-Ready Best Practices


Security

  • Least privilege: Only grant Modify All Data to admins. Use custom permissions for PB access.
  • Field-level security: PB respects FLS. If a user can’t edit a field, PB won’t update it.
  • Avoid hardcoding IDs: Use custom labels or custom metadata for record IDs (e.g., email template IDs).

Cost Optimization

  • PB vs. Flow: PB is "free" (no extra cost), but Flow is more scalable. For high-volume orgs, migrate PB to Flow.
  • Scheduled actions: Too many scheduled actions can clog the queue. Use Flow with Pause for better control.

Reliability & Maintainability

  • Naming conventions:
  • Object_Trigger_Action (e.g., Opp_StageChange_NotifyManager)
  • PB_ prefix for Process Builder (e.g., PB_Opp_FollowUp)
  • Versioning: Always clone and test before activating a new version.
  • Error handling: PB has no built-in error handling. For critical processes, use Flow with fault paths.

Observability

  • Debugging PB:
  • Use Setup → Process Builder → View Executions to see failed runs.
  • Check Setup → Debug Logs for errors.
  • Monitoring:
  • Set up alerts for failed PB executions (use Flow or Apex to log errors).
  • Track scheduled action queue in Setup → Scheduled Jobs.


5. ⚠️ Common Mistakes & Traps

Mistake Symptom Fix/Prevention
No "Stop" after criteria Process keeps evaluating other nodes, triggering duplicate actions. Always add a Stop action after your criteria.
Hardcoding IDs Process breaks when migrated to another org. Use custom labels or custom metadata for IDs.
Too many scheduled actions Queue gets clogged, actions run late (or not at all). Use Flow with Pause for better control.
Not checking FLS PB fails silently if the user can’t edit a field. Test with a non-admin user.
Ignoring governor limits PB hits DML limits when updating many records. Use bulkified Flows for large datasets.


6. ? Exam/Certification Focus


Typical Question Patterns

  1. "Which tool should you use for multi-step automation?"
  2. Process Builder (for simple logic)
  3. ❌ Workflow Rules (too limited)
  4. ❌ Apex (overkill for simple tasks)

  5. "How do you run an action 24 hours after a record is updated?"

  6. Scheduled Actions in PB
  7. ❌ Time-Based Workflow (only for simple field updates)
  8. ❌ Apex Schedulable (too complex)

  9. "What happens if you don’t add a 'Stop' action?"

  10. The process keeps evaluating other criteria nodes.
  11. ❌ The process stops automatically.
  12. ❌ The process fails.

Key ⚠️ Trap Distinctions

  • PB vs. Flow:
  • PB is easier but less flexible.
  • Flow supports loops, error handling, and screen elements (PB doesn’t).
  • Immediate vs. Scheduled Actions:
  • Immediate = runs right after criteria are met.
  • Scheduled = runs after a delay (not guaranteed to be exact).
  • Criteria "Formula Evaluates to True" vs. "Conditions are Met":
  • Formula = more flexible (e.g., ISCHANGED(StageName)).
  • Conditions = simpler (e.g., StageName = "Proposal").

Common Scenario-Based Question

"A sales rep updates an Opportunity to 'Proposal' stage. You need to: 1. Update the 'Next Steps' field immediately. 2. Email the manager 24 hours later if no Task is created. Which tool should you use?"

Answer: Process Builder (supports both immediate and scheduled actions).
❌ Workflow Rules (can’t do scheduled actions for complex logic).
❌ Apex (overkill for this use case).


7. ? Hands-On Challenge (with Solution)


Challenge:

When a Case is escalated (Status = "Escalated"), automatically: 1. Update the "Escalation Reason" field to "Customer Request." 2. Create a Task for the Case Owner to follow up in 1 hour. 3. Email the support manager 1 hour later if the Task isn’t completed.

Solution:

  1. Create a PB process on the Case object.
  2. Criteria: Status = "Escalated" (with "Only when specified changes are made").
  3. Immediate Actions:
  4. Update Escalation Reason to "Customer Request."
  5. Create a Task (Due Date = NOW() + 1/24 for 1 hour later).
  6. Scheduled Actions (1 hour after Case: Created Date):
  7. Email Alert to manager if Task Status != "Completed".

Why it works:
- PB handles both immediate and scheduled actions.
- The 1-hour delay is set using NOW() + 1/24 (1/24 of a day = 1 hour).


8. ? Rapid-Reference Crib Sheet

Concept Key Details
Process Builder Replaces Workflow Rules for multi-step automation.
Criteria Node "If this, then that" logic. Always add a Stop action.
Immediate Actions Run right after criteria are met (e.g., update field, create record).
Scheduled Actions Run after a delay (not guaranteed to be exact).
Invocable Actions Call Flows, Apex, or post to Chatter from PB.
Governor Limits Max 2,000 PB executions per hour. Counts against DML limits.
Debugging Check Setup → Process Builder → View Executions.
Migration Salesforce is deprecating PB—migrate to Flow.
⚠️ Trap: PB doesn’t support loops or error handling. Use Flow instead.
⚠️ Trap: Scheduled actions can run late if the queue is busy.
⚠️ Trap: Always test with non-admin users (FLS matters!).


9. ? Where to Go Next

  1. Salesforce Process Builder Trailhead – Official hands-on module.
  2. Process Builder vs. Flow – When to use which tool.
  3. Migrate Workflow Rules to Flow – Salesforce’s migration guide.
  4. Process Builder Limits – Governor limits to watch out for.

Final Pro Tip:

"Process Builder is like training wheels—great for learning, but you’ll outgrow it. Once you hit its limits, switch to Flow for better control, error handling, and future-proofing."

Now go automate something! ?



ADVERTISEMENT