• Print files from list view of Module and Subpanel

    How to add print file button in Action menu of record.? When the user selects records in the list view (module) or is viewing the records in the subpanel, clicking on the Print Files button will cause the files in those records to mass print. (Makes…
  • Setting Default Record Names on Record Creation

    Step 1. Select "Create" from the Quotes Module ListView to create a new record. OR Step 2. Select "Create" (the + button) from a related module (Accounts) in the sub panels. When the pop up window shows (the cached version of the new Quote record), I…
  • Why call bean->save() in before_save logic hook?

    The documentation on before_save logic hooks states that "calling save on the bean in this hook will cause an infinite loop if not handled correctly". I'm curious, what are the circumstances when you would need to call save on a bean in a before_save…
  • Set selected_teams (padlock) in Logic Hook

    Hello All, I am working on SugarCRM Enterprise, Version 9.0.2 (Build 191) (Spring '19) I can set padlock (which is used for teams with special access: O&ST) from record.js but I want to set it from hook. I want to achieve same functionality from before_save…
  • How to remove a team from users->Access->My teams ?

    Hi All, I am trying to remove the global team from user's profile by the following code in logic hook //Retrieve the bean $bean = BeanFactory::getBean($module, $record_id); //Load the team relationship $bean->load_relationship('teams'); //Remove the teams…
  • Modify Relate field using Logic Hook

    Is it possible to change a Relate field (not relationship or Flex Relate) using a logic hook in Sugar Enterprise 7.9.1.0? If so, how? Thanks!
  • Show notification that a logic hook triggered

    I need to show a notification that some fields were automatically updated by a logic hook. When saving an account or contact, it checks for certain flags to be set across all contacts. If it is the only contact attached to an account, the flags get set…
  • how to get the recently added bean id in after save logic hooks?

    I would like to retrieve the most recent id of an inserted data inside the after save method of logic hooks. How should I proceed with this? Thank you
  • How to throw and cach Logic Hook errors/exceptions and send error messages to log/GUI?

    Hello! I just wrote my frist Logic Hook, to clean and stardise the Accounts names (Company names) with a before save hook, like this: <?php class Clean { function CleanName($bean, $event, $arguments) { $companyname = $bean->name; $companyname = ucwords…
  • Logic Hook not working - Sugar Enterprise Edition

    Hello. I'm using SugarCRM Enterprise Edition 7.5.2.4, using an "On Demand" instance. I developed a logic hook to the native module "RevenueLineItems", that is related to the module "Opportunities". The logic is: on creating a RevenueLineItem (here I will…
  • MySQL query works in NaviCat but not in SugarCRM

    If any additional information is needed that would help you solve the problem, just let me know. I'm running SugarCRM 6.5.20 CE I have a logic hook that fires for a custom module and when I go to check the log, the query shows an execution time and appears…