Send mail for business rule exception

Hi friends,
i have two business rule exception ex. Exception 1 and Exception 2
suppose exception 1 occur then i have to send email which is related to Exception 1
and suppose exception 2 occur then i have to send email which is related to Exception 2.
how to do it.

Regards,

@Rup_1
You can use try catch activity. Drop your activity in ‘try’ then put your exception in ‘catch’. Under the exception, drop the activity you want to do.

image

Hi @Rup_1,

there are several ways to some are below.

  1. If you are using REFramework then for every transaction you are setting status in SetTractionStatus.xaml there you can add your piece of code.
  2. If you are using REFramework then for every transaction in Process State we have one BusinessRuleException State there you can define.
    image
  3. if you are not using REFramework , before you throw the BusinessRuleException you can use piece of code to send email.
  4. another way is as @albert.yango mentioned you can use try catch block.
1 Like

Ok thanks