W-Systems joins SugarCRM! Read Blog

4 Tips For Developers To Improve Custom Code in SugarCloud

by Vanlexus Franks on July 24, 2019

4 minute read

Whether you're a beginner or a pro, building code customizations in SugarCloud can be a challenge. While SugarCloud supports most customizations, there are some key things you need to know before you get started. In this post, we compiled four tips from SugarCRM to help you write flawless custom code in SugarCloud.

Clouds gif

1. Get Familiar With SugarCRM’s Supported Customizations

SugarCloud supports several configuration tools that can help you along your Sugar coding journey. Some of these include: 

  • Studio
  • Module Builder
  • Sugar Logic (such as calculated fields and dependent dropdowns)
  • Sugar BPM

You can use these out-of-the-box tools to create configurations within your Sugar instance, or you can build supported custom code such as logic hooks, integrations, scheduled jobs, custom REST API endpoints, and sidecar views. While SugarCloud supports a wide variety of customizations, you should know that customizing the Sugar application code (anything outside of the custom directory) directly is prohibited.

2. Ask Professor M

Professor M’s (Matt Marum) School for Gifted Coders is a great resource for testing code and building up your skills. You can access the Github for Professor M’s School here. From there you can download the latest release, install it via the module loader and populate the data. Moreover, you can contribute to the repository and run tests via Travis CI.

Professor M’s School

3. Seek Advice 

The Developer section in Sugar Community is a great resource to find tips, tricks, and feedback on your SugarCloud related questions. Within the Developer section, you can find development-focused blog articles, tutorials, and ask questions to other developers. 

Here’s an example of the type of advice you can receive in Sugar Community:

Sugar Community help

Think you’re a Sugar expert? Then contribute and share your expertise with others.

4. Follow The Commandments 

Here's a list of dos and don’ts that a SugarCloud developer should live by: 

  • You shall not use custom code when configuration will do just fine. 
  • You shall not have direct filesystem or DB access. 
  • You shall not use blacklisted classes, functions, or file types.
  • You shall not perform load or pen testing without permission of Sugar Support. 
  • You shall not introduce performance or security issues with your code. 
  • You shall not modify the enforced configuration parameters.
  • You shall not disable or circumvent the package scanner. 
  • You shall not allow an outbound HTTP connection to last longer than one second. 
  • You shall not abuse the job queue with a multitude of long-running jobs. 
  • You shall not abuse the REST API with more than 20 requests per second. 
  • You shall upgrade to every new release. 
  • You shall test before you deploy!


What a Sugar rush! Now that you have all the tools, you can look forward to building code customizations more efficiently and effectively than ever. Looking for more Sugar developer content? Check out this blog post. And, if you're preparing to upgrade Sugar in the near future, give this article a read!

About SugarCRM

Sugar’s robust suite of customer experience solutions is changing the game for organizations everywhere. At the heart of Sugar's fully integrated platform is a simple and consistent experience — one that’s tailored to each user’s unique needs and ways of working across any device. It’s how two million users are already closing deals faster and creating customers for life, without spending countless hours digging for data.

Learn More About SugarCRM

About W-Systems

W-Systems delivers sales and marketing solutions on a foundation of CRM to help customer-facing teams increase revenue and solve business problems. With over two decades of industry experience, we help organize information, create efficient processes and measure results.

W-Systems is a division of UpCurve Inc. and provides solutions around CRM including Marketing, Document Automation, Business Intelligence, Communications, and Cloud Computing. We are Certified Partners of top vendors including SugarCRM, DocuSign, AWSAct-On, GoldMine, and Amazon QuickSight.

Contact Us

 This was written by Vanlexus Franks, a marketing intern at W-Systems in Austin, Texas. She is currently a Junior at the University of Texas, Dallas pursuing a B.S in Marketing with a concentration in Professional Sales.