SugarCRM 7 - Adding an action to the listview headerpanel

Posted on Sat 25 July 2015 in SugarCRM • Tagged with php, sugarcrm

A red button with the words "Take action" on it

This tutorial should show you how to add a custom button/action that will appear across all modules. It's a little similar to this tutorial with a few changes to how the button gets rendered and the actions get called.

1. Adding the button to the headerpanel

Firstly you ...

Continue reading

SugarCRM 7 - Roll SugarCRM with Docker

Posted on Tue 07 April 2015 in SugarCRM • Tagged with docker, devops, sugarcrm


I find trying to replicate the SugarCRM environment locally a real pain. One of the main issues is simply that Sugar requires such old versions of PHP to be installed, especially compared to other web projects I have that implement the latest/greatest versions of PHP. Running multiple PHP versions ...

Continue reading

SugarCRM - Git Version Control Strategy

Posted on Mon 10 November 2014 in SugarCRM • Tagged with git, mysql, php, sugarcrm

git-logo I've found SugarCRM an utter pain to work with in terms of version control for a number of reasons, but the most annoying is simply that certain critical elements of the SugarCRM configuration are stored on the database.

Over time I've worked out a system that circumvents this ...

Continue reading

SugarCRM 7 - Fix to re-enable ElasticSearch on custom modules

Posted on Thu 18 September 2014 in SugarCRM • Tagged with elasticSearch, sugarcrm


I had an issue in Sugar where some custom modules refused to appear in the Global Search settings, meaning I couldn't index them in ElasticSearch.

When I checked the module oddly enough unified search would be enabled in this file:


1. Re-enable the module

To ...

Continue reading

SugarCRM 7 - Making Ajax Requests

Posted on Sat 09 August 2014 in SugarCRM • Tagged with javascript, jquery, sugarcrm


SugarCRM has a pretty great API if you know how to poll it. Today I'm sharing two examples of where I've needed to poll SugarCRM's API with some sample jQuery code.

A jQuery autocompleter

If you're declaring an input box and wish to autocomplete it's ...

Continue reading

SugarCRM - Sugar powered by Salt!

Posted on Sat 02 August 2014 in SaltStack • Tagged with saltstack, sugarcrm

Even the logos are creepily similar.

SugarCRM can be a pain to setup, especially if you are managing many installs on different servers/environments. I'm a big fan of using salt to configure my servers. I rarely manage any servers directly anymore and generally run things through my salt master. This guide should hopefully get ...

Continue reading

Log Queries with MySQL Proxy

Posted on Sat 19 July 2014 in MySQL • Tagged with lua, sugarcrm


What is it?

Have you ever found yourself wanting live statistics of you mysql database, or a log of all the erroring queries. Well MySQL Proxy might be just what you're looking for. Taken from the site:

MySQL Proxy is a simple program that sits between your client and ...

Continue reading

SugarCRM - Versioning Your Database

Posted on Wed 16 July 2014 in SugarCRM • Tagged with git, sugarcrm, php

One issue that constantly re-occurs for me using SugarCRM is that certain knowledge is only stored in it's database. So say you want to revert to a previous version of Sugar and wish to obtain the Studio customisations you've done at that version, say two days ago, well ...

Continue reading

SugarCRM 7 - Hiding subpanels based on specific criteria

Posted on Thu 12 June 2014 in SugarCRM • Tagged with javascript, sugarcrm

The new Sugar subpanels look great but they do take up quite a lot space, without any ability to remove Subpanels via studio I've had to come up with a few ways to hide them.

Note: Original Props go to Robin Larsson who wrote the `original <https://community.sugarcrm ...

Continue reading

SugarCRM 7 - Adding a custom column to a list

Posted on Thu 22 May 2014 in SugarCRM • Tagged with javascript, migration, php, rest, sugarcrm

This is the SugarCRM 7 equivalent to this post here, because Sugar has dropped the process record logic hook, we need to come up with a new solution.

Here's how you can add a new column to a list view, I have to admit this is one of the ...

Continue reading