AddNews
This function create news for specified (or all) departments. New subject and content can be customized
Syntax
AddNews("departmentName", "subject", "text");
Function arguments
- departmentName – (String) The name of department to which the message is addressed, you can pass many departments names separated by semicolon ’;’ or empty string for all departments
- subject – (String) The subject of the message
- text – (String) The message actual content
Return value
This function returns Boolean.
This function always returns true
Examples
Example 1:
This will send a news to IT department.
AddNews( "IT", "News title", "Message" );
Example 2:
This will send a news to IT and Accounting departments.
AddNews( "IT;Accounting", "News title", "Message" );
Example 3:
This will send a news to all departments.
AddNews( "", "News title", "Message" );