Tests for Record-Triggered Flows

Triggered flows (Kizzy Consulting)
⏱ 1 min read

Excited to see this new feature on record-triggered flows where we can test all the scenarios by creating test data similar to test classes in Apex and making sure all the aspects are running as expected.

Though it’s still in beta but would like to walk through the steps to set up tests in flow.

Steps:

  1. Go to record triggered flows and click on view tests(beta) and click on create
  2. Provide the name of the test, trigger point, and path for the test(only run immediately is available for now).
  3. The next step would be to create the sample data to test with.
  4. The final step is to set the assertion before you see the magic happen.

Result:

Select the test class to be tested and click on “Run test and view Details”, which then triggers the test run.

Here is the result basis the test cases. It reflects if the assertion has passed/failed.

Author:
Sanjeet Mahajan is the Founder & CEO of Kizzy Consulting and a 13x Salesforce Certified Architect with over a decade of experience in enterprise AI and CRM transformation. He leads a Salesforce Ridge Partner firm that has delivered 120+ projects globally, specialising in agentic AI, automation, and Salesforce implementation. Connect with Sanjeet on LinkedIn: https://www.linkedin.com/in/sanjeet-mahajan-9707689a/

Leave a Reply

Your email address will not be published. Required fields are marked *