Tuesday, April 8, 2008

Send alerts to online users in AX 4.0

When I started looking for how to send an alert to online users I found very few links on this topic. Here they are:

I compiled everything and created the little project AlertFromCode.xpo that 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.

14 comments:

Leonid Ganeline said...

Cool review.

Dodge said...

HI ..this is working fine .it sends alerts with popups and mail but the sentAlerByNetSend is not working in my system.it shows an error
"NET SEND message to has not been sent
Alerter Service should be started on the client side in order to receive messages"

my alerter service is is in ON state only.i trie d to debug it but of no result.can u pls give me a solution......

tretium alter ego said...

It is hard to say what is going on there not seeing your systems.

It is more probably that some services on your machines are not started.

In order to check it just try to send a message by means of NET SEND in the command prompt and see what the system says.

Also you could follow instructions from support.microsoft.com regarding this issue, e.g.

http://support.microsoft.com/?scid=kb%3Ben-us%3B839018&x=5&y=11

Dodge said...

Hi thanks for ur Tips and i have got the solution too.what i did was just simply started the MESSENGER services
and WOW its Sending Messages.....
Thank U.........:)

tretium alter ego said...

good for you!

Dodge, could you tell me what a system you use? Thank you.

Dodge said...

Hi Sorry for the delayed reply coz i was on a vacation.
Well i use A Windows System....

tretium alter ego said...

which exactly? windows xp professional? windows mobile?

Dodge said...

Its a Windows XP Professional system

Anonymous said...

how can i download this xpo? I get this error when trying to open it:

Error 403: Forbidden
You don't have permissions to access this page. This usually means one of the following:

this file and directory permissions make them unavailable from the Internet.
.htaccess contains instructions that prevent public access to this file or directory.
Please check file and directory permissions and .htaccess configuration if you are able to do this. Otherwise, request your webmaster to grant you access.


Thanks.

tretium alter ego said...

could you try again? I think the case was in access rights.

Anonymous said...

Hello, i am getting the error also, saying file not found :-s

Damon said...

Hello, i have also just try to download your project and unable to do so, would you be able to e mail it to me please

it@kings-southsea.com

cheers

Damon

tertium alter ego said...

Could you try again? I guess it was only a temporary issue with the host.

2Damon: I am going to send it to you.

Thanks for your interest!

Salman Imtiaz said...

Can any one email me this xpo on salmanking32@hotmail.com

Actually the link is not working.
Plzzzzz...