This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to get Exception message inside "Notification on error" message

We've a process to insert account to Target System. At the one of the step we executing script. If something goes wrong we are throwing an exception:

Public Function VRS_UNSAccountB_Insert(...) As Boolean
   ...
   If retMessages.Length = 0 Then
      Return True
   Else
      Throw New Exception(retMessages.ToString())
   End If
End Function

How to pass this exception to "Notification on error" Message body?

Parents
  • Hi,

    This should help ....

    Passing your own string to an error notification
    ========================================

    Configure your script or process to throw an exception with your string object:

    Throw New ViException(strMessageForMail)

    Then in the process notification on error tab in the Message part where you specify Value = "Something"

    You can reference a special parameter called "[AdditionalMessage]" (must be wrapped in "'s) - this will contain whatever you put in the string for the exception.

    Regards, Barry.
Reply
  • Hi,

    This should help ....

    Passing your own string to an error notification
    ========================================

    Configure your script or process to throw an exception with your string object:

    Throw New ViException(strMessageForMail)

    Then in the process notification on error tab in the Message part where you specify Value = "Something"

    You can reference a special parameter called "[AdditionalMessage]" (must be wrapped in "'s) - this will contain whatever you put in the string for the exception.

    Regards, Barry.
Children
No Data