Capture real return code from script and send this code using message notification

TJ (32 posts)
July 12, 2018 08:57 AM
Accepted Answer

Hi All,

In my case, the return code from my script indicates different meanings. I was able to set certain code as successful, but failure code means more to me. I need the exact failure code sending out with my notification message rather than just determining the code as failure.

Please give me some advice.

 

Thanks.

Bill Staff (599 posts)
July 12, 2018 09:38 AM
Accepted Answer
The result returned by your script will be stored in the ADTTaskResult job variable. To include that in a notification message, you just need to insert the token "%ADTTaskResult%" in the message text.

Replies are disabled for this topic.