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…
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…
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 …
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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 …
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…
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…
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…
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…
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…