Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Broadcast messages are an effective way for admin users to send real-time notifications or urgent updates to any group of logged in users. For instance, a server restart or maintenance message, or an urgent notice relevant only to certain user teams.

...

Info
titlePrerequisites

To use Messaging in the Power User Interface, make sure Messaging is included in your navigation menu (User Menu > Preferences > Navigation Menu Setup) and that your group has permission to send messages (Setup > Access > Manage Groups, edit the group, and select the "Allow access to Messaging wizard" checkbox on the General tab). Only admin users can edit group permissions.

Broadcasting Messages

You can broadcast messages at the Knowledgebase or the server level. Broadcasting at the server level sends the message to every KB on the server, so it requires access to the Administrator Console.

Messaging All Users in a Knowledgebase

To send a broadcast within one Knowledgebase to all logged-in users, perform the following steps:

Excerpt

...

  1. Click Messaging in the

...

  1. navigation menu.

...

  1. Enter the message content in the Message field.
  2. Under Recipients, choose whether to message everyone or only certain people. You can also choose not to show the message to yourself. If you select "Only these people," you can select teams, users, and chat users, in any combination. You can message end user teams using these options.
    Recipients optionsImage Added
  3. Press Send. The message is delivered shortly as a pop-up to

...

  1. logged-in recipients.

...

What if Messaging is not Enabled?

...

Messaging

...

All Users on a Server

...

To send a message to everyone, meaning every user logged in to any knowledgebase on the same instance of

Companyname
, log into in to the Admin Console and access the Broadcast feature, located at go to Setup > Broadcast.Image Removed

...

Using a REST Request to Send a Message

It is possible to You can also construct an HTTP request with specific attributes and parameters to send a message without logging in to the system. The , but the request must include credentials for an admin user.

...

Server Restart Message

You can send this default message when you are about to restart the server:

...

To do that, use this request with your server name, the name of your KB, and the credentials for an admin user with the "Allow access to Messaging wizard" permission enabled:

Code Block
languagexml
 httphttp://myewserver:8080/ewws/EWBroadcast?$KB=Demo&
 $table=chatmessage&$login=admin&
 $password=your_password&$lang=en

In this case, the KB attribute expects the name of your knowledgebase. The login and password pair should identify an admin user with enough privileges to send a broadcast message.

The same request can be used to send the default restart message to all KB's installed on your server. For that, you need to use admin as the KB name and valid login to credentials for the admin console.

Code Block
languagexml
http://myewserver:8080/ewws/EWBroadcast?$KB=admin&
$table=chatmessage&$login=admin&
$password=your_password&$lang=en

...

Custom Message

To send your own message, you will need to use include two additional attributes: messagekey=clear_message and messageparam=your message text.

For example, this request URL would send the To send a message "Please save your work!", the request URL should look like this:

Code Block
languagexml
http://myewserver:8080/ewws/EWBroadcast?$KB=Demo&
$table=chatmessage&$login=admin&
$password=qwerty&$lang=en&messagekey=clear_message&
messageparam=Please save your work!

...

System Text Custom Message

As part of localization solution , the system uses a properties file . This file that contains all

Companyname
system messages and interface text. For example, the text you read in any wizard or dialog screen is contained in this file. You should not edit this file unless you are adding Localization support for a new language. This file is shared by all KBs, so you can only apply your changes if you have login access to the server itself, and if you want to add new content to it, you should contact Support. However, you can use the default file content to send messages without hard-coding the text.

The file contains pairs of keys and values. If you know the key name, you can access the value.
To download the file, go to Setup > Localization > Translate. In this screen you can download the Program Translation File, with a name in the format GUI2_XX.properties, where XX is the Java localization code.
Image Removed
For  For broadcasting using REST, we employ this concept to access predefined, often parameterized, text messages, that also can be translated in different languages.It is recommended to consult with customer support by submitting a ticket if you would like to add a new key/value pair, otherwise existing ones can be used with any parameters.

To download the file, go to Setup > Localization > Translate, select the language you want to use, and download the GUI2_XX.properties file, where XX is the Java localization code.

Program Translation File section showing GUI2_en.properties fileImage Added

See the example below, where we use the GUI2.properties key server.isdown.soon as a messagekey and value 15 as a parameter:

Code Block
languagexml
http://myewserver:8080/ewws/EWBroadcast?$KB=Demo&
$table=chatmessage&$login=admin&$password=qwerty&$lang=en
&messagekey=server.isdown.soon&messageparam=15

This results in the following message being sent:  

Code Block
languagexml
 PleasePlease save your work and logoff, the server is going to be restarted for the system checks in 15 minutes. 
It will be available in 10 minutes.

...

If you have login access to the server itself, you can send a broadcast message from the command line (Unix/Linux)Unix or Linux command line. The message is sent to all KBs on that server.

Navigate to the

Companyname
installation directory and run the following:

Code Block
languagetext
echo The server will be restarted for a system check. >
./tmp/message2broadcast

...

Hide If
displayprintable

Content by Label
showLabelsfalse
max5
spacesPROD
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("broadcasting","implementation","messages") and type = "page" and space = currentSpace()
labelsbroadcasting implementation