• Record sync issue after logic hook

    1. Open a case. 2. Send an email 3. Return to case. 4. Update any field - you get the "resolve conflict page". This seems to be caused by a custom after_relationship_add logic hook on Emails. When the email is saved (depending on some custom parameters…
  • How to avoid chasing red herrings in logic hook relations?

    Hello all, I am a web developer who is learning sugarcrm at my new workplace. I have a fair understanding of the MVC workflow as well as SQL and programming. My question is as follows: How do you determine the correct relationship to use with the SugarCRM…
  • How to change Team on Email record with Logic Hook?

    Hi folks. I´ve got an Inbound email handler that creates Cases from emails. Trying to change the Teams on my Email record from the Administrator and salesdistro teams over to Global. This is the code but it´s not working, seem´s like the Logic Hook is…
  • Assignment Notifications not working for new Tasks created using logic hook

    I have a functionality where tasks should create and assignment notification get trigger after task created successfully. I have created new Tasks in after save logic hook. Here is my Tasks beans $task = BeanFactory::newBean('Tasks'); $task->name = $data…
  • Check team base permission using logic hooks

    Hello, According to Sugar documentation you can enable team based permissions by default, so when an user is creating a record the team default permissions is checked. If the Administrator has enabled team-based permissions, you may optionally indicate…
  • How to check relationship field value is changing in logichooks

    Hi All, For the normal fields it is possible to know that value is changing if(isset($arguments['dataChanges']['<your_field>'])) { $GLOBALS['log']->fatal("prev_sales_consultant_c_CHANGING"); } But how to check relationship field value is changing for…
  • Field account name not mandatory in opportunities

    I am trying to make the "Account Name" field by creating a new opportunity that is not mandatory but I am not capable. The option to make that field is not mandatory appears in the Studio and I have already tried to eliminate the line "<span class ="…
  • Determine current platform inside Logic Hook

    Hi, I want to know the platform from where the logic hook is being triggered to execute different code for different platforms. Is there any way to get the current user's platform from the logic hook?
  • 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…
  • after_relationship_delete logic hook deleting all records.

    I have created following code to delete record from related module,when user click on a remove button, from subpanel. I am facing a problem that when i remove a single record, it remove all the records from related module, instead of that single record…
  • Lead conversion fails (except it doesn't)

    Greetings developers, I have been trying to make this code work but it is making the Lead conversion show that it fails when in fact it was sucessful. I have created on contact a Field of List type . It contains the types of opportunities a contact wishes…
  • How to use SugarCRM under version control?

    I'm really curious about how to apply version control and deploy or build process like AWS CodeDeploy Pipeline to SugarCRM. But I faced difficulties because of a certain scenario. The scenario is this. You now successfully deployed new files such as hooks…
  • how can I change the notification email templates?

    Hello, I would like your help to change the text that appear on the automatic emails that Sugar send with the assignments notification. I have a customer who changed the names of the modules but when he receive an assignments emails the name that appear…
  • How to create a non-db field linked to a custom field in a related module?

    I have two custom fields ( field_one_c, field_two_c ) in Account module. I want to display the field_one and field_two values in the cases modules details view . In the cases module, we have to display these fields value of the particular account which…
  • Updating a Variable from a Field

    I'm creating a calculated field to calculate freight rates based on a fuel surcharge inside a module I call "Freight Rates". Essentially, I need a place that an employee can enter the price of fuel once and it will automatically calculate all of the rates…
  • Alternate function for pathinfo() to get file extension?

    I am creating a logic hook where I need to get the file extension. I have used pathinfo() to achieve the same. But when I tried to install on my 'OnDemand' instance, it resulted error saying can not use function pathinfo(). I checked this thread - Invalid…
  • Dynamically hide panel in detail view based database field value

    In have Custom module called Quotes where I have a panel at the top in Detail view .I have database field called Status in Quotes table what I want is when status field in Quotes table is 1 then only the panel should be visible or else not can any one…
  • How to set a selected value in dropdown list ?

    Hi All, How to set a selected value in dropdown list based on the selected value of another module list option ? In the Accounts module I have list option of Organisation Type and the same list in Users module too.When creating a new Account I want to…
  • How can I obtain $current_user  information through my after_ui_frame logic hook in  Sugarcrm 7.1.5?

    I am currently trying to get functionality developed on Sugarcrm 6.7 working on Sugarcrm 7.1.5. I am using an after_ui_frame logic hook to trigger a function in a custom class which is currently located in custom/includes. In this function I use the global…
  • 'update' event for a particular module to fire custom php code.

    Is there an 'update' event logic hook for a module that I could use to fire custom php code whenever a module gets updated with new data? Thanks!
  • How do you logout a user from the server in PHP?

    I want to create a customisation that logs users out after a certain time of inactivity since closing Sugar in their browser (e.g. log out at night). I need this separate from Oauth token lifetimes so that APIs and the Outlook Plugin can still be configured…
  • Saving Contact $bean deletes email addresses

    In the after_save logic hook for Accounts I wrote some code that would change the primary address of all Contacts linked to that account to the billing address of that account. The code works, but we eventually noticed, the the mystery of vanishing email…
  • Adding a team to a record through coding using after_save logic hook not working

    Hi everyone, I would like to add a team to a record through coding. I am using after_save logic hook but it is not add the team to the record. If I use before_save hook, then it’s working. I would like to use after_save hook as it is recommended by…
  • How to define Logic hook alongside Advance Workflow?

    Hello, let's assume, that I want to create Logic Hook and Advanced Workflow without timer. Advanced Workflow (Process definition): will run on Leads New records only criteria is Lead source equals "Newsletter" and result will be, that this Lead will have…
  • What is the function either PHP or Javascript in Sugar that converts the Database date/time to the current users Time Zone date/time?

    When the date/time is retrieved directly from the database, it is in UTC. How do I convert it to the current users Time Zone?
« 5 6 7 8 9 »