---
schema_version: "1"
id: d700a428c6dada6ea2940db749d7fdb1d4872b2e09d344ab10b41de36dd251e2
title: Flow Testing and Debugging
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/release-notes/264-0-0/rn_automate_flow_debug.md
canonical_url: https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_debug.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: b520683b1373c9ea0bf9776b18a9e2e822811241cb979ce170ca67ef1f299fb9
description: Debug flows and save reusable test scenarios in one place with the new Flow Test Mode (beta) for record-triggered and autolaunched flows. Test flows in isolation with mock outputs for Action and Subflow elements. Generate flow test scenarios from the command line with headless Agentforce for Flow. Enter a static record ID to debug flows with specific records. Populate primitive and record collection inputs to test more scenarios.
products:
  - Cross Cloud
release: "264"
---
# Flow Testing and Debugging

Debug flows and save reusable test scenarios in one place with the new Flow Test Mode (beta) for record-triggered and autolaunched flows. Test flows in isolation with mock outputs for Action and Subflow elements. Generate flow test scenarios from the command line with headless Agentforce for Flow. Enter a static record ID to debug flows with specific records. Populate primitive and record collection inputs to test more scenarios.

- **[Test Flows in a Dedicated Test Mode (Beta)](https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_test_mode.htm&release=264.0.0&type=5)**  
    Switch between building your flow and testing it in one place, and reuse saved test scenarios so you don't reenter inputs every time. Use Test Mode in Flow Builder to debug and save test scenarios in autolaunched and record-triggered flows.
- **[Test Flows in Isolation with Mock Outputs for Action and Subflow Elements (Beta)](https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_test_mock_output.htm&release=264.0.0&type=5)**  
    Test your autolaunched and record-triggered flows more reliably with mock outputs for Action and Subflow elements. Define consistent test data for external callouts and subflow responses without depending on live systems or external services. Mock outputs are available in autolaunched flows and record-triggered flows.
- **[Generate Flow Test Scenarios with Agentforce for Flow](https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_test_generate_using_ai.htm&release=264.0.0&type=5)**  
    Skip the manual setup and let Agentforce for Flow Headless draft your test scenarios from a terminal, without opening Flow Builder. Use Agentforce for Flow Headless to create test scenarios for record-triggered, autolaunched, and Data Cloud-triggered flows without leaving your terminal environment. Through your connected terminal, you can generate comprehensive test scenarios for your flow, including success, fault, and edge-case paths.
- **[Test Flows with Specific Records by Entering a Record ID](https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_builder_test_with_static_ids_264.htm&release=264.0.0&type=5)**  
    Enter a static 15-character or 18-character record ID directly in the Flow Builder debugger to debug flows with specific records. This option helps test flows that use objects with limited searchability, such as Cases or Campaign Members, without digging through lookup results.
- **[Test Flows with Primitive Collection Inputs](https://help.salesforce.com/s/articleView?id=release-notes.rn_automate_flow_builder_test_debug_inputs_264.htm&release=264.0.0&type=5)**  
    Test different input values by populating primitive collections directly in the Flow Builder debugger. Previously you could only test single input values, not collections. Try various scenarios without editing your flow, reducing development time and improving test coverage. For example, if your screen flow or autolaunched flow accepts a text collection of IDs as an input variable, you can now populate that collection directly in the flow debugger.