• How To save date and time value in date and time field in sugarcrm using before save logic hook ?

    How To save date and time value in date and time field in sugarcrm using before save logic hook ?
  • Send note file with email as attachment

    Hi, In case record i have an note record with file attachment under "Notes" subpanel. I need to send that file from note record with email as attachment. Currently the email is sending using ($mail = new SugarPHPMailer();) but how to attach that file…
  • Prevent deletion of some products

    Hello i want to disable delete or prevent them from deleting certain products in some module when user clicks delete button. Is there any experts who knows this ? Thanks in advance any help would be appreciated. found a sample code trying to put it together…
  • auto increment integer field

    Hi, I use sugar 7.6 pro and I want a custom integer field id_autoincrement in the task module which is autoincremented every time that I create a new task. If I create a task and the last created id is 10 the new one will be 11 for example. I find a lot…
  • How to inherit Primary Team from related (Parent) record via Logic Hook?

    Hello, My scenario is the following: 1. We have Teams defined by regions (Africa, Asia, Europe...etc.) 2. For each Teams added some users. 3. An Account created (which is located in Europe) and manually set up the Team for Europe. If I create a child…
  • Set Relationship is not working on sandbox Sugarcrm

    This is m logic hook After Save , this logic hook is perfectly working on my local machine. But it is not working on sandboxcopy. I asked this question to Sugar Support team , They found that Set_relationship is not working . But my question is why this…