I compiled everything and created the little project AlertFromCode.xpothat can be useful in daily administrator work. A few words about that:
- Send Alerts button on Online Users form
- Send Alert dialog where a user can choose various options
for example, to send the alert by:
popup window inside AX environment (it can be seen on EventAlertInbox form)
e-mail to the mailboxes of recipients
net send command to the computer which the user connected from
moreover, it is possible to log results of e-mail and net sending attempts in Infolog (they are not stored in EventAlertInbox)
Notes:
Name of sender which placed in Subject of the message is taken from appropriate E-mail Templates which chosen in Alert Parameters.
Keep in mind that Alerter Service should be started on the client side in order to receive messages of net send command. If not the class will show the warning but it takes much time to wait for a response from the command.