sugarcrm - SuiteCRM 7.3 - 如何添加我自己的通知?

标签 sugarcrm suitecrm

最近发布的 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/

相关文章:

sugarcrm - 在 suiteCRM 中,如何将地址字段国家和州文本字段更改为下拉菜单?

css - 无法更改 SuiteCRM 中的 css

linux - 将 sugarcrm 从 5.2 升级到最新版本

linux - Sugarcrm 模块加载器扫描包错误

php - 在 SuiteCRM 中使用原始 SQL

sugarcrm - 尝试保存模板时出现 SuiteCRM 403 错误(禁止)

sugarcrm - 创建或更新任务时尝试向 suiteCRM 添加逻辑 Hook

php - 如何在 SugarCRM 的电子邮件模板中使用条件

fatal-error - 调用未定义的函数iconv() fatal error -Suitecrm

sugarcrm - 在 Vtiger CRM 中创建自定义入口点并在没有身份验证的情况下调用