How To ….
1. How to send email notification if task fails
2. How to send email notification depending on whether task fails or passes
1. How to send email notification if task fails
Generally, if your task exit code =< 0, then the task has passed. If exit code > 0, then task generally has failed. Use the Email Notification feature (from the Settings menu) to email yourself if a task fails.
2. How to send email notification depending on whether task fails or passes
Generally, if your task exit code =< 0, then the task has passed. If exit code > 0, then task generally has failed.
1. Setup your desired task and test it.
2. Setup two email tasks to email yourself. One with the failure notification message, and another with success notification message. Test your email tasks.
3. Setup a chain task that has 3 steps.
1st step should be your desired task.
2nd step should be the email failure notification.
3rd step should be email success notification.
4. For your desired task in the 1st step, in the chain options, set the criteria:
If Exit Code < 1, Go to Step 3.
5. For the email failure notification task in step 2, Select the Check Box "Always stop chain at this Step".
6. If your task passes, the exit code = 0 or exit code < 0, the chain will move to Step 2. A success notification email will be sent, and chain will stop here.
6. If your task fails, the exit code = 0. The chain will move to step 3, and failure notification email will be sent.