<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Send alerts/messages to online users</title>
	<link>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/</link>
	<description>Dynamics AX development blog</description>
	<pubDate>Thu, 09 Feb 2012 18:01:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Mark</title>
		<link>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-14788</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 22 Oct 2010 01:56:17 +0000</pubDate>
		<guid>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-14788</guid>
		<description>Yes!!! perfect! I have search for a long time.</description>
		<content:encoded><![CDATA[<p>Yes!!! perfect! I have search for a long time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FY Hew</title>
		<link>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-14099</link>
		<dc:creator>FY Hew</dc:creator>
		<pubDate>Thu, 23 Sep 2010 02:42:57 +0000</pubDate>
		<guid>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-14099</guid>
		<description>Hi Erik Paulsson,

Thanks for this....it really very useful info:)</description>
		<content:encoded><![CDATA[<p>Hi Erik Paulsson,</p>
<p>Thanks for this&#8230;.it really very useful info:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sandrar</title>
		<link>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-7959</link>
		<dc:creator>sandrar</dc:creator>
		<pubDate>Thu, 10 Sep 2009 23:02:18 +0000</pubDate>
		<guid>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-7959</guid>
		<description>Hi! I was surfing and found your blog post... nice! I love your blog.  :) Cheers! Sandra. R.</description>
		<content:encoded><![CDATA[<p>Hi! I was surfing and found your blog post&#8230; nice! I love your blog.  <img src='http://www.fourone.se/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Cheers! Sandra. R.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CINUE LEONEL ARCE OROZCO</title>
		<link>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-6313</link>
		<dc:creator>CINUE LEONEL ARCE OROZCO</dc:creator>
		<pubDate>Thu, 04 Jun 2009 21:05:43 +0000</pubDate>
		<guid>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-6313</guid>
		<description>I have modified method infoLogMessage because some users do not have relation to an employee account and I get the email account from table SysUserInfo:

void infoLogMessage(SysClientSessions _sessions)
{

    SysUserInfo     sys;
    UserInfo        userInfo;

    ;
        select * from sys
           where sys.id == _sessions.userId;

        select * from userInfo
           where userInfo.id == _sessions.userId;

    if(userInfo)
    {
        info(strFmt("Employee: %1",_sessions.userId));
        info(strFmt("Name: %1", userInfo.name));

        if(sys.Email &#38;&#38; sendEmail)
        {
            if(this.sendMail(sys.Email))
            {
                info("Email has been sent to user.");
            }
        }
        else if(!sys.Email)
        {
            info("No email has been sent.");
        }
    }

}

Thanks for this useful resource.</description>
		<content:encoded><![CDATA[<p>I have modified method infoLogMessage because some users do not have relation to an employee account and I get the email account from table SysUserInfo:</p>
<p>void infoLogMessage(SysClientSessions _sessions)<br />
{</p>
<p>    SysUserInfo     sys;<br />
    UserInfo        userInfo;</p>
<p>    ;<br />
        select * from sys<br />
           where sys.id == _sessions.userId;</p>
<p>        select * from userInfo<br />
           where userInfo.id == _sessions.userId;</p>
<p>    if(userInfo)<br />
    {<br />
        info(strFmt(&#8221;Employee: %1&#8243;,_sessions.userId));<br />
        info(strFmt(&#8221;Name: %1&#8243;, userInfo.name));</p>
<p>        if(sys.Email &amp;&amp; sendEmail)<br />
        {<br />
            if(this.sendMail(sys.Email))<br />
            {<br />
                info(&#8221;Email has been sent to user.&#8221;);<br />
            }<br />
        }<br />
        else if(!sys.Email)<br />
        {<br />
            info(&#8221;No email has been sent.&#8221;);<br />
        }<br />
    }</p>
<p>}</p>
<p>Thanks for this useful resource.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jade</title>
		<link>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-4692</link>
		<dc:creator>jade</dc:creator>
		<pubDate>Thu, 19 Mar 2009 20:16:49 +0000</pubDate>
		<guid>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-4692</guid>
		<description>I've tried this, but i'm getting this error on the EP unified worklist page:Error in call of method EventContextInformation.unpack</description>
		<content:encoded><![CDATA[<p>I&#8217;ve tried this, but i&#8217;m getting this error on the EP unified worklist page:Error in call of method EventContextInformation.unpack</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Paulsson</title>
		<link>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-2431</link>
		<dc:creator>Erik Paulsson</dc:creator>
		<pubDate>Wed, 26 Nov 2008 12:18:19 +0000</pubDate>
		<guid>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-2431</guid>
		<description>Sorry about that Marc, I have missed to add the pack and unpack method in my post. It's been a while since i wrote it but my guess is that I missed it probably because I have just used the override method functionality to get the methods from the RunBase class. Since I haven't changed them I left them out but forgot to mention this small but important fact in the post.

Let me know how it works!</description>
		<content:encoded><![CDATA[<p>Sorry about that Marc, I have missed to add the pack and unpack method in my post. It&#8217;s been a while since i wrote it but my guess is that I missed it probably because I have just used the override method functionality to get the methods from the RunBase class. Since I haven&#8217;t changed them I left them out but forgot to mention this small but important fact in the post.</p>
<p>Let me know how it works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-2414</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Sun, 23 Nov 2008 14:29:35 +0000</pubDate>
		<guid>http://www.fourone.se/blog/2008/05/27/send-alertsmessages-to-online-users/#comment-2414</guid>
		<description>Hello Erik,
       just playing with you class, but i am getting a error on and main method.

Object could not be created because abstract method RunBase.pack() has not been implemented.

i hae copy everything just as you have done it, unsure what i have done wrong :-s</description>
		<content:encoded><![CDATA[<p>Hello Erik,<br />
       just playing with you class, but i am getting a error on and main method.</p>
<p>Object could not be created because abstract method RunBase.pack() has not been implemented.</p>
<p>i hae copy everything just as you have done it, unsure what i have done wrong :-s</p>
]]></content:encoded>
	</item>
</channel>
</rss>

