最近发布的 SuiteCRM 7.3 具有显示桌面通知和站点通知的功能(在标题中)。
如何通过代码添加或触发我自己的自定义通知?
最佳答案
我还没有对此进行测试,但您应该能够简单地保存一个新的 Alert bean。
即
$alert = BeanFactory::newBean('Alerts');
$alert->name = 'My Alert';
$alert->description = 'This is my alert!';
$alert->url_redirect = 'index.php';
$alert->target_module = 'Accounts';
$alert->assigned_user_id = '1';
$alert->type = 'info';
$alert->is_read = 0;
$alert->save();
modules/Alerts/controller.php
中的action_add
方法提供了一个示例。
关于sugarcrm - SuiteCRM 7.3 - 如何添加我自己的通知?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32067430/