Vote count: 0
I am attempting to use an after_save
logic hook to if i am update assignee in Leads then same assignee should be assigned to its related Notes. Below is the code I am using. I am currently on 6.5 enterprise. Does anyone have an idea of how i can compare both values?
In modules/Leads/logic_hook.php
$hook_array['after_save'] = Array();
$hook_array['after_save'][] = Array(1, 'Leads edited', 'custom/modules/Leads/ExtraLogic.php', 'ExtraLogic', 'saveAssigneeToNotes');
In custom/modules/Leads/ExtraLogic.php
//check if a fields value has changed
if ($assigned_user_id != $bean->assigned_user_id)
{
// execute logic
} else {
// Same value
}
Thanks.
asked 29 secs ago
How to differentiate value with existing value via hook in SugarCRM?
Aucun commentaire:
Enregistrer un commentaire