How to Send Mail Error Occurs in Reframework

Hi.

i write code in Reframework… in that code any error occurs at any states… i have to get mail intimation with error log or warning message in that mail…

How to do …

Thanks
Shyam

1 Like

Hey @Shyam_Pragash

In the Finally block of Process Try Catch,

  • Add an if activity with condition SystemException isNot Nothing OrElse BusinessException isNot Nothing

  • just add your Send Mail activity by passing necessary props in the then block of the above if

Hope this helps

Thanks
#nK

Hi @Nithinkrishna

Share the screenshot it will help me more…

1 Like

Hi Shyam, Are you using the UiPath Reframework Template? If yes, you can do so by the use of “Transition” in state machines. You can add steps in each type of result - Success, System Exception etc.


1 Like

Hi @snehasish.mondal @Nithinkrishna

Thank you for your reply…

it will initimate any state issue in Reframework… ?

Thanks
Shyam

1 Like

Hey @Shyam_Pragash

Here you go,

Finally block of Process Try Catch

The Code for Send Email

image

Hope this helps

Thanks
#nK

1 Like

Hi @Nithinkrishna

i got the mail if any error occurs…

How to write error message in Body of the Mail…

Thanks
Shyam

1 Like

Hey @Shyam_Pragash

Just pass SystemException.Message or BusinessException.Message in the body prop.

Thanks
#nK

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.