Article ID: 71
Last updated: 01 Nov, 2016
Riva Cloud and Riva On-Premise do not force specific unknown or customizable values on new items; the built-in Sugar Custom Hooks are recommended. Custom Hooks have been available in Sugar for many versions and are fully supported. They provide the greatest flexibility, allowing different defaults or custom processing based on different key values. A custom hook can be built to copy the values from a "Template" object that could be edited in the CRM, allowing users to override their own individual defaults. An unlimited number of options are available. This article includes some examples that would work with Sugar 4.5+ to Sugar 6.x. These examples have not been confirmed against Sugar 7.x or SuiteCRM. Example for CasesFilename: sugarcrm_root/custom/include/Cases/CaseHooks.OnCreate_SetDefaults.php <?php Filename: sugarcrm_root/custom/modules/Cases/logic_hooks.php Note: If the file already exists, just copy the $hook_array line. <?php Example for OpportunitiesFilename: sugarcrm_root/custom/include/Opportunities/OpportunityHooks.OnCreate_SetDefaults.php <?php Filename: sugarcrm_root/custom/modules/Opportunities/logic_hooks.php Note: If the file already exists, just copy the $hook_array line. <?php
This article was:
Helpful |
Not helpful
Report an issue
Article ID: 71
Last updated: 01 Nov, 2016
Revision: 7
Views: 10023
Comments: 0
Also listed in
|