Hi all! Is there a way that I can cancel record c...
# suitescript
d
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
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
In beforeSubmit you could throw an error to prevent it saving.
d
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