This week Clemente Raposo, Lead Developer of SuiteCRM, takes you through how to add custom actions to your modules in SuiteCRM 8.
Record action configuration provides a way to add actions to the record view of a module. Besides the ability to define a label and the action process handler, this configuration has built-in support coping with several other scenarios: opening a record selection modal before running the action, opening a confirmation modal before running the action, redirecting to a different view after executing the action and reloading the current record after running the action.
In today’s example, we are going to demo an alternative way to define actions to your module, using an example that adds a “Link Account” button to the Opportunities module record view. Watch this week’s video to learn how to add custom record actions, and be sure to check below to get the code example to help get you started.
For those of you who are keen to get started, you can find the code sample from the video below:
public/legacy/custom/Extension/modules/Opportunities/Ext/Language/en_us.link_account.php
defaultExt/config/modules/Opportunities/recordview/actions/link-account.php
defaultExt/modules/Opportunities/Process/Service/RecordActions/LinkAccountAction.php
The above can be used as an example to add your own custom actions and custom buttons to the Record View 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!