logo

NJP

TRY Flow Logic in Flow Designer

Import · Apr 24, 2024 · article

Add a subheading.jpg

Hola Community,

The Washington release of ServiceNow brought a powerful new feature to Flow Designer: Try Flow Logic. This innovative addition allows you to build more robust and user-friendly flows by gracefully handling potential errors.

Enhanced Flow Stability

By isolating error-prone actions within the "Try" block, the flow continues to execute even if an error occurs. This prevents the entire flow from crashing and ensures critical processes keep moving.

Real-World Use Case

Imagine a flow designed to send an email to Manager of an end user. However, there is a possibility that email field is empty or in incorrect format and that is how it would have been set in LDAP. This will lead to flow failing abruptly.

However, if you define the 'Send Email' or 'Send Notification' action inside TRY flow logic, we can trigger alternative actions such as: Sending an email notification to ServiceNow Admin team for investigation, You can inform end user that your manager is not set properly in ServiceNow and contact the Service Desk team and so on.

This ensures the core functionality of the flow remains operational, even during temporary data issues.

Below video provides a practical demonstration of Try Flow Logic in action. By witnessing its capabilities firsthand, you'll gain a deeper understanding of how it can transform your ServiceNow flows.

View original source

https://www.servicenow.com/community/developer-blog/try-flow-logic-in-flow-designer/ba-p/2907692