SugarCRM Cookbook – SugarQuery – The Basics
Originally posted on SugarCRM Developer Blog: You have found yourself in a bind, and you need to query the database directly. There is no other recourse than to write a query to get the data you need....
View ArticleCrontab For Sugar CRM
Run The Following commands to Make Schedulers to Run in Sugar CRM In Linux Terminal view crontabs bycrontab -l Then type the command crontab -e click on i on keyboard and add the line at the end of...
View ArticleGetting Reports To User Hierarchy in Sugar CRM as Array
Create File custom_utils.php in custom/include directory and add the following functions in to it The getReportsToUserArray Function has two parameters $userid is the id of user $teamArray returns the...
View ArticlePass Php Array to Javascript using JSON – Sugar CRM
Consider that we are restricting user to assign a case to his/her reporting person so create the file like below as view.edit.php in custom/module/cases/view/ . The functions which are used to get...
View ArticleGet Reports To User in Array Format – Sugar CRM
The Following Function will return the Users Reports To one by one like category and its parent category concept /* $userId is the id of user $teamArray is the result which will return array of reports...
View ArticleHow to Add Custom Subpanel in DetailView of Sugar CRM
There comes the time when sales rep finds it irritating to view opportunities Closed Won and Closed Lost under same subpanel. Lets make custom subpanels separating Closed Won and Closed Lost. In this...
View ArticleModify SugerField Address – Country dropdown in Sugar CRM
First change the type of country fields Suppose we are changing the address control fields in Leads module. Create one php file and add the code in and put it to...
View ArticleOne To Many RelationShip using php Code – Sugar CRM
In Sugar CRM If you want to create one to many relatinship like in studio then the following steps can be used. Here there are 12 parts of code. This will generate the relationship between passed...
View ArticleGet All Related Record – Sugar CRM
Here assume that there are two modules Leads and Bhea_Lead_Contact First create the relationship one to many from leads to Bhea_Lead_Contact Suppose lead id is 34eb9639-4c23-fb6d-dc30-50bc8c8e420f The...
View ArticleAdd Fields to Basic Search in List View of Module – Sugar CRM
Here assume that we are going to add Datepicker in the Basic search panel on Case Module List view. =========================================================== create the fileSearchFields.php at the...
View Article