当联系人被添加到 Sugar Crm 中的目标列表时,我一直在尝试更新自定义表。 我尝试使用保存后逻辑钩子(Hook)来实现这一点。但什么也没发生。甚至没有错误。 尝试了逻辑钩子(Hook)
<?php
$hook_array['after_save'][] = Array(
1,
'after_save example',
'custom/modules/ProspectLists/after_save_class.php',
'after_save_class',
'after_save_method'
);
class after_save_class
{
function after_save_method($bean, $event, $arguments)
{
print_r($bean);exit;
error_log("======================================================================================================hook is working");
}
}
有人知道如何捕获此联系人添加操作并编写自定义逻辑吗?
最佳答案
Suit crm 7.10 不支持此功能 (Sugar 6.5.25)。 实现此目的的最佳方法是创建调度程序并手动更新数据库
关于php - 在 Sugarcrm 中将联系人添加到目标列表时如何更新数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49771120/