function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mariagusmariagus 

How can I catch validations / exceptions on a flow

Hi,

 

I have a flow which creates a record of a custom object, where user enters its name. This data must be unique so I have a trigger that validates that.

 

If I try to create a record with an existing name, I get an e-mail with the exception, but what I would like to get is a screen with this error message. I don't mind creating a variable which will be populate with this error and show it in a new screen in the flow or just create a page with the flow target and show the error message there. Both optios are valid for me but I don't know how to develope it.

 

Any idea?

 

Thanks in advance.