Best place to send email notification AFTER 3 retries in REFramework?

Hello,

I’m looking to send a notification via email when a transaction fails 3 times by System Exception using the REFramework. Where would be the best place to put this? I’ve tried using the Try-Catch over process under system exception but this seems to send an email every time.

Thanks for your help in advance!

1 Like

you can do it in settransactionstatus xaml under Application exception flow

@LeThomp

in set transaction status , before RetryCurrentTransaction,
add this if condition :
io_RetryNumber > Convert.ToInt32(in_Config("MaxRetryNumber"))
if true, then send email, this will make it so that it will only send mail when MAX retries reached (e.g. after 3 retries)