01Chapter 1: What Apex is and where it runsApex is the programming language Salesforce built for writing custom business logic on its own platform. This chapter covers what kind of language it is, where your code executes, and how code gets started. The later chapters build on this when they compare Apex with Flow.8 min read
02Chapter 2: What Flow is and the flow typesThis chapter assumes you know the Salesforce data model (objects, fields, records), can find your way around Setup, and have seen a simple automation built before. It also assumes basic programming ideas such as variables, loops, and collections. Apex was covered in the previous chapter. Here you bu8 min read
03Chapter 3: Where Flow is the right first choiceThis chapter explains which requirements Flow handles well and why it is usually the first tool to try. It assumes you know the Salesforce data model (objects, fields, records), can find your way around Setup, and have built or at least seen a simple flow. It also assumes you know what a variable, a8 min read
04Chapter 4: Where Apex is the better choiceThis chapter assumes you can build a simple record-triggered flow, find your way around Setup, and read basic code (variables, loops, lists, maps). You don't need to have written Apex before. The goal is to learn which requirements push you toward code.7 min read
05Chapter 5: Governor limits apply to both toolsThis chapter assumes you know the basic Salesforce data model (objects, fields, records). It also assumes you have built a simple record-triggered flow and can read short Apex snippets with variables, loops, and collections.7 min read
06Chapter 6: Designing for bulk: why it mattersThis chapter assumes you know the Salesforce data model, can find your way around Setup, have built a simple record-triggered flow, and understand loops and collections. It covers why record-triggered automation must handle many records at once, how to write Apex that does, and how Flow handles the 7 min read
07Chapter 7: One transaction, many automations: order of executionThis chapter assumes you can read a simple before-save or after-save record-triggered flow and a basic Apex trigger. It also assumes you know the synchronous governor limits from the earlier chapter. Here you will learn the sequence Salesforce follows when one record save fires several automations, 7 min read
08Chapter 8: Testing and deployment comparedThis chapter compares how Apex and Flow are tested and moved between environments. It assumes you know the Salesforce data model, can navigate Setup, have built a simple flow, and understand variables, loops, and collections. Earlier chapters covered what each tool is and how governor limits and bul7 min read
09Chapter 9: Maintenance cost and who owns the automationThis chapter assumes you know the basic Salesforce data model, can find your way around Setup, and have built at least one simple flow. You should also understand basic programming ideas such as variables, loops, and collections. Earlier chapters covered what Apex and Flow are, and where each fits b10 min read
10Chapter 10: A practical framework for choosingThis chapter assumes you know the Salesforce data model, can navigate Setup, have built a simple record-triggered flow, and understand variables, loops, and collections. It gives you a repeatable way to decide whether a requirement belongs in Flow, in Apex, or in both. The earlier chapters covered w6 min read
11Chapter 11: Using both: calling Apex from FlowThis chapter shows how a flow calls Apex through an invocable method. It assumes you know the Salesforce data model, can find your way around Setup, have built a simple record-triggered flow, and understand variables, loops, and collections. It builds on the earlier chapters about governor limits, b6 min read
12Chapter 12: Avoiding conflicts between automationsThis chapter assumes you know the order of execution in broad terms, the shared governor limits, and how to build a record-triggered flow and an Apex trigger. Here you will see what goes wrong when several automations act on the same object and event, and how to prevent it.7 min read