Documentation

Defining Object Actions

Available Liferay DXP/Portal 7.4+

With Liferay Objects, you can define actions that are triggered under specified conditions. When an action is active, Liferay listens for when an Object’s data is added, deleted, or updated and then performs the set action.

Important

Currently, Actions only supports triggering webhooks that deliver a payload to an external source to sync and process data.

Follow these steps to define actions for an Object:

  1. Open the Global Menu (Global Menu), click on the Control Panel tab, and go to Objects.

  2. Select an existing Object or create a new one.

    Note

    Beginning with Liferay DXP 7.4 U22, you can add actions to system Objects.

  3. While viewing the Object, select the Actions tab and click the Add button (Add Button).

  4. Enter a name.

  5. For When, determine the action’s trigger.

    Trigger

    Description

    On After Add

    When an Object entry is added

    On After Delete

    When an Object entry is deleted

    On After Update

    When an Object entry is updated

  6. For Then, select Webhook. This determines the type of action performed.

  7. Enter a URL for the webhook.

  8. (Optional) Enter a secret for the webhook.

    Enter a name, trigger, action type, and URL.

  9. Click Save.

    Note

    After saving an action, you cannot change its trigger (i.e. When field) or action type (i.e. Then field).

Once created, the action is active and is triggered according to your configuration.

The action is activated after saving.

If desired, you can deactivate an action at any time. Select the action, toggle the switch to Inactive, and click Save.

Actions can be deactivated at any time.