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:
Open the Global Menu (
), click on the Control Panel tab, and go to Objects.
Select an existing Object or create a new one.
Note
Beginning with Liferay DXP 7.4 U22, you can add actions to system Objects.
While viewing the Object, select the Actions tab and click the Add button (
).
Enter a name.
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
For Then, select Webhook. This determines the type of action performed.
Enter a URL for the webhook.
(Optional) Enter a secret for the webhook.
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.
If desired, you can deactivate an action at any time. Select the action, toggle the switch to Inactive, and click Save.