• 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…
  • How to set multiple team when create new record via logic hook

    Hi, I try to create case record and put multiple teams, one is primary team(fetch from parent) another is team id but it doesn't work. $c = BeanFactory : : newBean ( 'Cases' ) ; $c - > name = 'Test' ; $c - > status = 'New' ; $c - > assigned_user_id =…
  • How can I get all status of cases via load_relationship in logic hook

    Hi I found this in document http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.7/Data_Framework/Models/SugarBean/#Fet… I put in to logic hook its work but it return huge result. How can I get all status from this ? any suggestion…
  • Any idea for after_save logic hook to check data change ?

    Hi all, I have 2 ways to do. The first is using before save and after save for check data was changed I have been used in sugar 6.5 before. http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.7/Architecture/Logic_Hooks/Examples…
  • Show notification that a logic hook triggered

    I need to show a notification that some fields were automatically updated by a logic hook. When saving an account or contact, it checks for certain flags to be set across all contacts. If it is the only contact attached to an account, the flags get set…
  • Logic Hook not working - Sugar Enterprise Edition

    Hello. I'm using SugarCRM Enterprise Edition 7.5.2.4, using an "On Demand" instance. I developed a logic hook to the native module "RevenueLineItems", that is related to the module "Opportunities". The logic is: on creating a RevenueLineItem (here I will…
  • Is it possible to use CURL in logic hook for Sugarcrm 7.6 ?

    Thanks, M
  • Is there a way to Uppercase ALL fields in a record?

    I mean uppercase all fields without having to go through this.. $bean->first_name = strtoupper($bean->first_name); $bean->last_name = strtoupper($bean->last_name ); $bean->address = strtoupper($bean->address ); $bean->gender = strtoupper($bean->gender…