<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00008YhR0RCAVOkta Identity EngineWorkflowsAnswered2022-12-28T18:33:36.000Z2022-12-22T19:30:11.000Z2022-12-28T18:33:36.000Z

JacksonK.52224 (Customer) asked a question.

Is there a catch all if error alert that can be sent when a workflow fails?

hi there,

 

I have several workflows and I was wondering if any of them fails, can the error message be sent to a slack channel or email?

 

I already have seen this article:

 

https://support.okta.com/help/s/article/How-to-setup-an-error-notification-flow-in-Okta-Workflows?language=en_US

 

But this requires me to put my entire worfklow in "try" and then set up an "if error" slack/ email alert.

 

I was wondering if there is simple a function I can put into the end of the workflow that would trigger when any part of the workflow fails and sends an alert/ message?


  • SteveS.00405 (GoCardless)

    @JacksonK.52224 (Customer)​ I used that exact article you mentioned and create one specifically for Successes and Failures > created a completely new private channel for this.

     

    It's becomes like an audit channel that you can use to search to see the history - if you include loads of info, like the email, name if you're using it for custom LCM. You can put the Flow History error URL in a Failure card.

     

    Use https://app.slack.com/block-kit-builder - to make your Slack messages stand out and customised.

     

    I put a Success Message at the end of a WF > pass to child flow to post the Slack message. If it gets to the end of the WF, then everything before it must have worked.

     

    Use the If/Error and create your failure message in the Error part > pass to your "Post Failure" Slack child flow.

    Expand Post
    Selected as Best
  • TimL.58332 (Workflows)

    @JacksonK.52224 (Customer)​ 

     

    >But this requires me to put my entire worfklow in "try" and then set up an "if error" slack/ email alert.

     

    Correct. The "If/Error" card is a Try/Catch block (in many programming languages) that basically states "Try to do this thing" and if the thing results in an error "Do this thing instead".

     

    Typically the only portions that need to be in the "If/Error" card are actions that are likely to throw an error such as making an API call.

     

    If you want robust handling of specific or a broad set of conditions you will need to build out logic to handle it. If/Error is required if you want to do something after an error occurs in the flow.

    Expand Post
  • SteveS.00405 (GoCardless)

    @JacksonK.52224 (Customer)​ I used that exact article you mentioned and create one specifically for Successes and Failures > created a completely new private channel for this.

     

    It's becomes like an audit channel that you can use to search to see the history - if you include loads of info, like the email, name if you're using it for custom LCM. You can put the Flow History error URL in a Failure card.

     

    Use https://app.slack.com/block-kit-builder - to make your Slack messages stand out and customised.

     

    I put a Success Message at the end of a WF > pass to child flow to post the Slack message. If it gets to the end of the WF, then everything before it must have worked.

     

    Use the If/Error and create your failure message in the Error part > pass to your "Post Failure" Slack child flow.

    Expand Post
    Selected as Best
This question is closed.
Loading
Is there a catch all if error alert that can be sent when a workflow fails?