#SalesforceSummer25 – Add ‘Has Error’ Assertions to Flow Tests for Better Error Handling

#1MinuteTip #SalesforceSummer25 You can now add “Has Error” as an operator in Flow Test assertions. This allows you to explicitly check whether a specific flow element caused an error during a test run. If the element encounters an error and your assertion is expecting it (e.g., Has Error = True), the test will pass. If no error occurs and one is expected—or vice versa—the test fails.

Select the Has Error operator to configure negative assertions for Create Records, Update Records, Delete Records, and Action elements.

This is extremely useful when you’re testing error scenarios and want to validate that your flow behaves correctly when things go wrong.

(Not familiar with Flow tests yet? Check out our step-by-step guide on configuring and using Flow tests.)

Product Area: Flow

References & Useful URLs

Want to Receive these Tips in your Inbox?

Finding it overwhelming to keep pace with Salesforce’s new release features? Try our “1 Day 1 Tip 1 Minute” emails, where you are going to get 1 tip every day that won’t take more than a minute to read. To find out more and subscribe please click here.

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top