<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Sending notification from server events</title><link>https://www.aras.com/community/f/development/3932/sending-notification-from-server-events</link><description>We need to send notification on modification of an item type.

We wrote server side event to get the modification details but are in need of C# API to send notification.

Thanks..</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Sending notification from server events</title><link>https://www.aras.com/community/thread/2048?ContentTypeID=1</link><pubDate>Mon, 01 Oct 2018 11:41:48 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:f6c9a0fb-8d85-48f1-a421-656ed5149213</guid><dc:creator>Christopher Gillis</dc:creator><description>Hi Arthy,

The issue you&amp;#39;re running into is that the property &lt;strong&gt;target&lt;/strong&gt; on the Message ItemType expects an ID of an Identity item, but only a name is being passed in. To resolve this issue, you can either hard-code in the ID of the Administrators Identity (&lt;code&gt;notifyItem.setProperty(&amp;quot;target&amp;quot;, &amp;quot;2618D6F5A90949BAA7E920D1B04C7EE1&amp;quot;);&lt;/code&gt;) or perform a short query to look up the ID of the Identity as in the example below.

&lt;pre&gt;&lt;code&gt;Item identity = inn.getItemByKeyedName(&amp;quot;Identity&amp;quot;, &amp;quot;Administrators&amp;quot;);
notifyItem.setProperty(&amp;quot;target&amp;quot;, identity.getID());&lt;/code&gt;&lt;/pre&gt;


Chris

&lt;hr /&gt;

Christopher Gillis

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending notification from server events</title><link>https://www.aras.com/community/thread/2047?ContentTypeID=1</link><pubDate>Fri, 28 Sep 2018 02:30:42 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:afafc2fd-427d-4352-8fb6-2d6ecdf50b80</guid><dc:creator>Arthy</dc:creator><description>Hello Mike,

I tried the following..

Item notifyItem = this.newItem(&amp;quot;Message&amp;quot;, &amp;quot;add&amp;quot;);

notifyItem.setProperty(&amp;quot;type&amp;quot;, &amp;quot;Popup&amp;quot;);
notifyItem.setProperty(&amp;quot;priority&amp;quot;, &amp;quot;5&amp;quot;);
notifyItem.setProperty(&amp;quot;acknowledge&amp;quot;, &amp;quot;Always&amp;quot;);
notifyItem.setProperty(&amp;quot;target&amp;quot;, &amp;quot;Administrators&amp;quot;);
notifyItem = notifyItem.apply();

Item identityItem = this.newItem(&amp;quot;Identity&amp;quot;, &amp;quot;get&amp;quot;);
identityItem.setProperty(&amp;quot;name&amp;quot;, &amp;quot;Innovator Admin&amp;quot;);
identityItem = identityItem.apply();

bool sent = myCurrentItem.email(notifyItem, identityItem);

But am not able to get things work.

Thanks in advance for your guidance,

Arthy&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending notification from server events</title><link>https://www.aras.com/community/thread/2046?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 11:31:51 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:75d4482a-0e5f-45c9-87af-23dd25d88749</guid><dc:creator>tarkka</dc:creator><description>Hi Arthy,

Notifications are of ItemType &amp;quot;Message&amp;quot; and to create one, you just perform an &amp;quot;add&amp;quot;. Similar to email, you&amp;#39;ll specify the identity that should receive the message. There are a couple of required properties (type, priority, acknowledge, target).

Best,
Mike&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending notification from server events</title><link>https://www.aras.com/community/thread/2045?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 02:30:11 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:5566d2c3-c2ba-42a6-8727-17250e9b8c5c</guid><dc:creator>Arthy</dc:creator><description>We do not want to send email as it will SPAM the users inbox.

Hence we are looking for an option to just Notify the user, when they are login to ARAS.

Thanks,

Arthy&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending notification from server events</title><link>https://www.aras.com/community/thread/2044?ContentTypeID=1</link><pubDate>Mon, 24 Sep 2018 02:19:03 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:a6e97d20-2a37-441b-9c9d-fadd7c0e5e44</guid><dc:creator>Arthy</dc:creator><description>Thanks Moramatte and Mike for your reply,

The requirement is when an item of a particular itemtype is modified, we have to notify relevant ARAS users using ARAS innovator&amp;#39;s built-in notification through server side onbeforeupdate[to collect information before modification] and onafterupdate method[compare and send notification on respective modifications done].

Currently am not able to find an API for notification similar to the following[for email]:

Item emailItem = this.newItem(&amp;quot;EMail Message&amp;quot;, &amp;quot;get&amp;quot;);

emailItem.setProperty(&amp;quot;name&amp;quot;, &amp;quot; EventDeleteMessage &amp;quot;);

emailItem = emailItem.apply();

bool sent = modified_item.email(emailItem, identityItem);

Kindly get back on any further information needed.

Thanks,

Arthy&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending notification from server events</title><link>https://www.aras.com/community/thread/2043?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 16:51:56 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:36a4847a-6087-419d-a0b2-2c6bede00eca</guid><dc:creator>tarkka</dc:creator><description>Hi Arthy,

I&amp;#39;ve done something very similar to this (I think) and would be happy to help, but I need a few more details.

Do you mean that you would like to send a notification via Innovator (i.e. the built-in Email or Notification feature) or do you have a specific external API that you need this to happen via, as Moramatte is alluding to.

When you say that you want to be notified when an &amp;quot;item type&amp;quot; is being modified, do you mean that you want this to happen when any Item of a particular ItemType is modified, or when the ItemType Item itself is modified?

Best,
Mike&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sending notification from server events</title><link>https://www.aras.com/community/thread/2042?ContentTypeID=1</link><pubDate>Fri, 21 Sep 2018 09:42:00 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:b0905902-a4d5-4b05-a9ae-b7bda84bf18a</guid><dc:creator>Former Member</dc:creator><description>You can develop all the .Net code you want in a regular Visual Studio project, and then put your binaries in the Aras installation. Just remember to include these in method_config. Then you can call methods in your binaries from Aras methods.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>