Hi all,
I need to send Exception mails to user
I should send these mails only from Reframe work End process state kindly suggest me how can I do this?
So do you need to send a consolidated mail of all exception messages?
If so…you need to create a datatable and then add data to datatable
Use the datatable to send the email if it has data
Cheers
I need to send mails like (invalid credentials,browser failed ,path not found)
Hi @Ramya_yadav
During one of my project We have used this way
In the process state
In the catch block
1.Under system exception
We have used send outlook mail activity
2.Under business exception
We have used send outlook mail activities
Hope this helps
So you mean if it fails in init state it needa tos end message?
Then in the end process check if SystemException IsNot Nothing
and on the then side use send mail activity…and exception details would be in systemexception.message
Cheers
Hi @Ramya_yadav
1.Where your are having Exception Trycatch on
catch you can assign to a variable and pass that
variable with argument out…
out_Str= exception. Message
- In End process state you can check by using if
activity like this
Not String.isnullorempty(out_str)
Then - you can send all exception mails by saying
Exception.Message
Else - you can leave blank