• Logic hook can't find link name of relation

    Hello All, I'm looking for help with figuring out why a new logic hook works well on my local Sugar instance but does not work in the online instance. This is an after_save logic hook in the RevenueLineItems module that automatically creates/updates records…
  • 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…
  • Get id of sent email

    Hi, In after_save logichooks I used "$mail = new SugarPHPMailer();" for sending emails I need to get the ID of email which is sent. I tried to get id from "$mail->id" but its not working Basically I need to use email_id in this logic ( https://support…