This function create news for specified (or all) departments. New subject and content can be customized


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


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" );
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
How Can We Improve This Article?