• Best practices to enforce 1:1 relationships?

    It turns out that Sugar does not enforce 1:1 relationships, it overwrites them with no warning to the user. (Bug?) Is my only option for enforcement a custom before-relationship-add logic hook? Thanks, Francesca
  • 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 ?
  • 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…