Pages

Thursday, January 6, 2011

January is Logic Hooks Month

According to the stats for this blog, logic hooks are a popular subject amongst visitors.  As such, I figure the topic would be a great way to kick off an idea of mine that I have been tossing around for a bit.

Going forward, I will select a topic of interest, or theme, on a monthly basis.  The objective: to discuss the topic at hand in further depth throughout the month, with other posts sprinkled in between for variety.

However, this idea can only work with your assistance.  

To help, simply reply to the post announcing the month's topic (e.g. this post) and suggest a facet of said topic for discussion.  For example, perhaps you have been wanting to build a logic hook to execute an SQL query, but are unsure about how to get started.  Simply share your scenario within the comments area.  

In turn, I will select one of the suggestions on a weekly basis and provide a detailed post discussing the process involved in addressing the issue.

Now, while all suggestions are welcome, there are some rules to consider:

1. For obvious reasons, I cannot create a detailed post for every suggestion, but if time permits, I will tackle more than 1 per week.  

2. Please be as clear as possible in your description of your scenario.  If the description is not clear, I will not consider it.

3. Do not post sample code or the like.  A clear description of the goal will suffice.  

4. Some scenarios may require very specific configurations, such as custom modules, etc.  I will not be able to create mirror environments for all cases, but my response will include sufficient guidance to fulfill the vast majority (if not all) of your goal.

5. Suggestions on themes for upcoming months are welcome and highly encouraged.

Thanks and now lets have the suggestions relating to logic hooks (in the comments section)!  

Wednesday, January 5, 2011

SugarCRM Customization: Case Numbers

One of the great things about helping newer members of the SugarCRM community is that they often help me remember some customization needs that are not frequently asked by others. 


A good example of this came up just a few days ago on the SugarCRM Forums when a user asked if it was possible to change the starting point for the numbering sequence on Cases.  By default, SugarCRM begins at the number 1 and automatically increments it by 1 whenever a new Case is added.  However, many users would prefer it to start at a different number.  


So, how does one change the start point?  


It is actually rather simple and requires two things: access to a MySQL administrative tool such as SQLyog, phpMyAdmin, etc. and a single SQL command.


Assuming you already have access to the administrative tool, executing the following command would do the trick for you:


ALTER TABLE cases AUTO_INCREMENT = nnn; 


Where nnn represents the starting number you wish to apply.  For example, to set the starting point to 1000, use the following command:


ALTER TABLE cases AUTO_INCREMENT = 1000;


That is it!  Quick and easy!

Monday, January 3, 2011

SugarCRM Customization: Drop Down Fields

Looking to create a drop down field in SugarCRM?  


No problem.  Simply go to the customization Studio and add a new field of type "Drop Down," making sure to assign or create the appropriate drop down list at field creation time.


Simple enough, but that only works for custom fields.  What about changing an existing, default field so as to make it behave like a drop down.  For example, we might want to change the Subject field for Cases or the Name field for Opportunities into drop downs. 


Doing so would help us ensure uniformity in the classification of support inquiries or revenue opportunities, which in turn improves data quality and simplifies the measurement of effectiveness.  Ultimately, one of the goals of CRM technologies is to simplify the process of measuring how well your business is doing and the quality of the data in the system has a significant impact on that function.


So, how do we convert these default text fields to drop down fields?  Lets take a look.