This week Clemente Raposo, Lead Developer of SuiteCRM, takes you through how to add custom bulk actions to your modules in SuiteCRM 8.
The bulk action configuration allows you to add actions to the list view’s bulk actions dropdown menu. In addition to specifying a label and action handler, this configuration has built-in support coping with several other scenarios: setting a minimum and/or maximum record selection limit, opening a record panel for extra inputs, displaying a record selection modal before running the action, showing a confirmation modal prior to execution, redirecting to a new view after the action, and refreshing the current list view upon completion.
In today’s example, we’ll demonstrate how to add a bulk action that opens a record panel for additional input. We’ll use an example that introduces a “Dynamic Rename” action to the bulk action menu in the Opportunities module list view.
Check out this month’s video to learn how to create custom bulk actions and see below for code samples to help you get started.
For those of you who are keen to get started, you can find the code sample from the video below:
extensions/defaultExt/config/modules/Opportunities/listview/actions/dynamic-rename.php
extensions/defaultExt/modules/Opportunities/Process/Service/BulkActions/DynamicRenameBulkAction.php
public/legacy/custom/Extension/application/Ext/Language/en_us.dynamic_rename.php
The above can be used as an example on how to add Bulk Actions to your modules in SuiteCRM 8.
If you are looking for more development insights, the Development Team here at SalesAgility have created instructor-led Masterclasses. Designed for developers, covering both SuiteCRM 8.x and SuiteCRM 7.x, head over to the MasterClasses to find out more.
About SuiteCRM
SuiteCRM is one of the world’s most popular CRM applications. Our feature-rich enterprise-ready alternative to Salesforce enables your sales teams to sell, market & service smarter. Providing all the benefits of CRM at substantially lower costs, with the freedoms and flexibility of Open Source.
You can download and host SuiteCRM on your own servers, in the public cloud / private cloud or try our SAAS offering SuiteCRM Hosted. It is the ultimate freedom, allowing you to stay in full control over your business data. Try SuiteCRM for free here.
Help support the SuiteCRM project by becoming a sponsor today!