• Slow API Calls when adding relationship based on database size

    Hi everyone. I am currently trying to upload 500,000 records into CRM, using a custom module with 3 relationships. Card Transactions which then links to Card, Sale Location, Contact. These are all M:1 relationship. I have a custom API endpoint to…
  • Subpanel for Revenue Line Items different on Create vs View

    Hi everyone. I have updated the subpanel for Revenue Line Items on Opportunities through studio. However when creating a new quote, the RLI subpanel at the bottom does not match the subpanel when creating an opportunity? Also is there anyway to disable…
  • Redirect with SugarApplication:redirect()

    Hello, I saw here on the forum how to use SugarApplication:redirect() in php code for redirection, but when trying to use it I was unsuccessful. I tried in a few ways: SugarApplication :: redirect ( "#Leads" ); SugarApplication :: redirect …
  • Test Email LogicHook development server

    Hi, How can I best test my Email LogicHook on incoming mail on my local development server? Thanks, Stijn
  • Error when consuming external service.

    Hi We are currently modifying the url of a web service that is consumed from sugarcrm, the instance is an instance located in the cloud. This is an example of the code we implemented: curl_setopt_array($curl, array( CURLOPT_URL => ' http://pruebas…
  • Best practice to send data to an external site and displaying the return in sugar as an alert

    Hi all, I have a custom module of printers, when certain fields are updated in the record I want to send that record data to an external laravel site to update its database. I currently use logic hooks to do this $hook_array['after_save'] = Array…
  • Fetched Row Not Working on Relate Field Logic Hook

    Hi Everyone, Is it possible to use the fetched_row function on relate field (not relationship)? Currently we have the code below written in a before save logic hook, but the current account field is not pulling back a value using fetched_row. $currentAccount…
  • Sugar Query - Ifnull

    Hi everyone. I am attempting to convert all of my Raw SQL into Sugar Query, having mostly success following the guide @ https://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_9.2/Data_Framework/Database/SugarQuery/ However…
  • 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…
  • How to prevent logic hook firing from another module or on import

    Hi all. I've created a logic hook which basically checks if the record is updating and if so, check if there is a contact assigned and if not, do not allow save. This works fine on my test site but not on a customers site. They have two issues: 1…
  • one to many relationship from converting lead

    Hello SugarCRM community I would like to add new one-to-many relationship from the lead page to my custom module. As I understand it, I have to use a logical hook, but I cannot implement it. Could you help me? I have a lot of difficulties with this…
  • 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…
  • SugarCrm add a column to leads list page.

    I've to add a column in leads list view page. I've tried this... custom/Extension/modules/Leads/Ext/LogicHooks/specQuickEditButton.php <?php $hook_array['process_record'][] = Array(1, 'Add Quick Edit Button in ListView', 'custom/SpecCustom/LogicHooks…
  • 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…
  • 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…
  • Adding user input into Edited field

    I want to add an edit function if user decides to change the field value but i cant seem to find the right way to do this. Ive tried searching through google but it doesn't give any answer related for this problem. code here: <?php class CloseTicket …
  • Disable updating Date Modified when making a REST API call

    I'm making an API call from an external service to change a custom field in the Accounts module in Sugar 8.3. The difficult part is that, when the field is changed, I don't want the "date-modified" field to change. I think that one way to do this is to…
  • 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…
  • Invalid usage of a function array_map()

    When trying to upload a package containing a logic hook to a sugar on demand environment, I am getting the error "Invalid usage of a function array_map()" The usage of array_map is here: $serviceTypeList = array_map ( "trim" , $serviceTypeList ) ; The…
  • 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!
  • Email Logic Hook - After save

    Hello, I would like to execute a specific code after an email is received. The code parses the email subject and do specific actions. I would like a more custom way than binding the email with a case from the subject ( [Case:XXX] to Case XXX) However…
  • Installable package failed - "unable to load bean"

    Hi. I'm trying to install a custom package that turns "Opportunity Name" field required in the Quotes module but I get an error in the Log: Mon Apr 24 21:36:22 2017 [3491][01d5bbea-1fa2-11e7-afde-063b661e1dc5][FATAL] Unable to load bean Mon Apr 24 21…
1 2