Print

AddNews

The AddNews() function creates news (with a subject and a text message) for the specified (or all) departments.

Syntax

AddNews(departmentName, subject, text);

Function arguments

  • departmentName – (String) a name of a department to which the news is addressed. You can pass many department names separated by semicolon ’;’ or an empty string for all departments;
  • subject – (String) a subject of the news;
  • text – (String) the news content (text message).

Return value

This function returns Boolean.
This function always returns true.

Examples

Example 1:
This will create a news for IT department.

AddNews( "IT", "News title", "Message" );

Example 2:
This will create a news for IT and Accounting departments.

AddNews( "IT;Accounting", "News title", "Message" );

Example 3:
This will create a news for all departments.

AddNews( "", "News title", "Message" );

 

Czy artykuł był pomocny?
0 na 5 gwiazdek
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
How Can We Improve This Article?