How to read exceptions through automation script

We have a requirement to read exceptions and search if a particular string found in the exception using automation script. If so it will trigger email to some team. Is there API to read exceptions using automation script?

Parents
  • As  mentioned, it is possible to catch an exception that is thrown during the execution of an automation, and then log or create an email from it. (It would also be automatically logged even if you did not). However, this will only apply to exceptions that are thrown from the automation, itself. There isn't an event that's raised for other exceptions thrown elsewhere, so an automation would not be able to intercept those. There also is not a supported API for listing exceptions - only for logging them. Depending on the requirements, it may be worth noting that system notifications are emailed to administrators when they're thrown. If you share a bit more about what you're trying to achieve, there may be an alternative approach.

Reply
  • As  mentioned, it is possible to catch an exception that is thrown during the execution of an automation, and then log or create an email from it. (It would also be automatically logged even if you did not). However, this will only apply to exceptions that are thrown from the automation, itself. There isn't an event that's raised for other exceptions thrown elsewhere, so an automation would not be able to intercept those. There also is not a supported API for listing exceptions - only for logging them. Depending on the requirements, it may be worth noting that system notifications are emailed to administrators when they're thrown. If you share a bit more about what you're trying to achieve, there may be an alternative approach.

Children