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.
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)