Object actions define operations that you can run manually or automatically for object entry events.
To add an action,
Open the Global Menu ( ), go to the Control Panel tab, and click Objects.
Begin editing an object definition.
Note
For Liferay 7.4 U22+/GA22+, you can add actions to system objects.
Go to the Actions tab and click Add ( ).
In the Basic Info tab, enter a Name and Description for the action.
Go to the Action Builder tab to define the custom trigger, conditions, and action.
Specify a trigger event to determine when the action is performed.
Trigger
Description
On After Add
When an entry is added
On After Attachment Download
When an entry attachment is downloaded
On After Delete
When an entry is deleted
On After Update
When an entry is updated
DXP 2025.Q4+ On After Login
When a user logs in Only available for the User object
Standalone
Triggered manually
Important
All triggers besides standalone are automatic. Standalone triggers are for running any type of action manually. See Using Manual Actions for more information.
The event-based action triggers (e.g., On After Add or On After Login) provide low-code solutions for actions that used to require legacy extensions like model listeners or login action hooks.
(Optional) Enable a condition for automatic triggers. Click Code ( ) to view available expressions.
On Liferay 7.4 U33+/GA33+, Liferay validates the condition’s syntax when you click Done. If the expression is invalid, Liferay displays an error message. See Expression Builder Validations Reference for more information on available fields, operators, and functions.
Select the type of action to perform and fill out all additional fields.
Type
Description
Notification
Send email or user notifications using a predefined template.
By default, Liferay sends email notification templates’ backing object notification actions to guest users in the instance’s language. While configuring the object action, you can enable Send email notifications in the guest user’s preferred language to detect the user’s preferred language and send email notifications in that language instead. When enabled, the language used in the guest user’s object entry submission becomes the language used in email notification templates. If no translation is available, the instance language is used.
This website uses cookies and similar tools, some of which are provided by third parties (together “tools”). These tools enable us and the third parties to access and record certain user-related and activity data and to track your interactions with this website. These tools and the informationcollected are used to operate and secure this website, enhance performance, enable certain website features and functionality, analyze and improve website performance, and personalize user experience.
If you click “Accept All”, you allow the deployment of all these tools and collection of the information by us and the third parties for all these purposes.
If you click “Decline All” your IP address and other information may still be collected but only by tools (including third party tools) that are necessary to operate, secure and enable default website features and functionalities. Review and change your preferences by clicking the “Configurations” at any time.
Visit our Privacy Policy