Skip to Content

Rollback handlers

Introduction

A rollback handler is an action handler that will run if any of the event sequence's preceding actions fail. You can use them in cases where transactions are not sufficient to reverse an action (for example, when changes are made via API calls).

Note

A rollback handler can reverse the effect of any action that came before it, except for itself.

How to add a rollback handler to an action

To add a rollback handler, follow these steps:

  1. On the Rule Event Details page for a rule event, click the Open record icon in the Actions section for the action that requires a rollback.

  2. In the Action (Registration) dialog, click the Rollback Handlers icon in the Action Result and Handlers section:

    Rollbacks add

  3. In the Rollback Handlers dialog, click the Create button. For as many rollback handlers as are required to reverse all the actions in the preceding event chain, register existing or create new handlers:

    Create rollback

    Note

    You can't add a rollback handler to a rollback action.

  4. Close all dialogs and return to the Rule Event Details page. The number of rollbacks attached to each action appears adjacent to the icon:

    Action rollbacks