Skip to content

Instantly share code, notes, and snippets.

@JimMackin
Created August 20, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JimMackin/6d39e9e4d673f3fb1dae to your computer and use it in GitHub Desktop.
Save JimMackin/6d39e9e4d673f3fb1dae to your computer and use it in GitHub Desktop.
Adding SuiteCRM alerts
<?php
$alert = BeanFactory::newBean('Alerts');
$alert->name = 'My Alert';
$alert->description = 'This is my alert!';
$alert->url_redirect = 'index.php';
$alert->target_module = 'Account';
$alert->assigned_user_id = '1';
$alert->type = 'info';
$alert->is_read = 0;
$alert->save();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment