Hi all! Is there a way that I can cancel record creation in the beforeSubmit user event? Or even just prevent emails from being sent after record creation?
I would like to stop emails from being sent for new cases created with a specific case profile. I can't just switch the setting to do this off as there is another case profile that needs to send emails
d
Dominic B
06/08/2022, 2:54 PM
I'd try turning off notifications in support setup, then creating a saved search to send a notification email for new cases with a profile filter. If that doesn't work, you could probably substitute the search with a user event on case creation.
n
NElliott
06/08/2022, 4:04 PM
In beforeSubmit you could throw an error to prevent it saving.
d
DMS
06/09/2022, 4:46 PM
Throwing an error did cross my mind. The only problem I can think of when doing it that way is dealing with any other real errors. Going to implement it, see how it goes