01Chapter 1: Flow types and what triggers themEvery flow starts in one of a small number of ways. Before you can debug or test a flow, you need to know which type it is and what starts it. The type decides who the flow runs as, what data it receives, whether it can show a screen, and how you can reproduce a failure. This chapter covers the main7 min read
02Chapter 2: Debugging a flow in Flow BuilderThis chapter assumes you can build a basic flow: add elements, create variables, and use Get Records, Decision, and Update Records elements. You need a sandbox or Developer Edition org. Run debug sessions there first, because a debug run can write real data unless you protect it (the next chapter co8 min read
03Chapter 3: Debug options: input values, rollback, and running as another userThis chapter covers the controls that decide what data a debug run uses, whether the run changes your org, and which user the flow runs as. It assumes you can already start a debug run from Flow Builder and read the element-by-element results. It also assumes you know your flow's type and how it sta8 min read
04Chapter 4: Transactions and governor limits that affect flowsThis chapter explains the transaction a flow runs in and the limits that apply to it. Those limits cause many of the failures you will debug later. It assumes you can build a flow with variables, decisions, loops, and Get Records, Create Records, and Update Records elements. It also assumes you know6 min read
05Chapter 5: Handling errors with fault pathsThis chapter assumes you can build record-triggered and screen flows, use variables and Get Records and Update Records elements, and run a debug session in Flow Builder. You should also know how a flow shares a transaction with the save that triggered it. Work in a sandbox or Developer Edition org, 9 min read
06Chapter 6: Tracing flow execution with debug logsThe Flow Builder debugger shows one run of one flow. Debug logs show what the whole transaction did, including the flows, Apex, validation rules, and limit usage around it. Use them when a failure happens outside the builder, such as for a different user, a scheduled flow, or a record-triggered flow7 min read
07Chapter 7: Creating and running flow testsThis chapter assumes you can build a record-triggered flow in Flow Builder, and that you have used the Debug button from the earlier chapters. You also need a sandbox or Developer Edition org where you can create and activate flows. No Apex is needed here. The next chapter covers Apex tests.8 min read
08Chapter 8: Testing flows with Apex testsYou should know how to build a record-triggered flow and an autolaunched flow in Flow Builder. You should also read basic Apex: classes, @IsTest methods, SOQL, and DML. You need a sandbox or Developer Edition org where you can activate a flow and run tests. Earlier chapters covered Flow Builder te7 min read
09Chapter 9: Testing flows with bulk dataThis chapter covers how to test a flow with many records at once, so you can find limit problems before users do. It assumes you can build a record-triggered flow, read basic Apex, and have already seen how governor limits apply to flows in the earlier chapter on transactions.7 min read
10Chapter 10: Flow error emails and monitoring failed interviewsThis chapter covers how Salesforce reports flow failures after a flow is live, and how you can watch for failures yourself. It assumes you can build a flow with elements and variables, that you know what a fault path is, and that you have a sandbox or Developer Edition org. Apex knowledge is helpful8 min read
11Chapter 11: Diagnosing common flow failuresThis chapter assumes you can build a record-triggered flow, run Flow Builder debug, and read a debug log at a basic level. You should also know what a fault path is and what the governor limits are. Earlier chapters covered those tools. Here you use them to diagnose the failures that come up most of9 min read
12Chapter 12: Putting together a debugging and testing strategyThis chapter combines the techniques from earlier chapters into one repeatable routine. It assumes you can build a flow in Flow Builder and know the basics of Salesforce objects and records. For the Apex examples, you also need basic Apex syntax and access to a sandbox or Developer Edition org. It d9 min read