<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Using a UI action to fire a Notification. in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118103#M775029</link>
    <description>&lt;P&gt;Hi Austin,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;1) Once the Event Has been setup under Registry module as shown below:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/74066i6499EC10CDAED2E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;2) Navigate to your respective UI Actions and configure the event submitted above &amp;nbsp; to trigger it from the UI Action as shown below in the example below:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/74068iB60C67CC241B5AE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;In the above screen shot you can specify the Event Name, post which Navigate to the Notification module and configure your Notifications accordingly as shown below:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/74064i6A4B5AF9D73248A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Select your Event Name as highlighted above and other condition when you want to send this Notification and to whom you want to send in "&lt;STRONG&gt;Whom will Receive&lt;/STRONG&gt;" section and Contents in "What it will Contain" section.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Hope this helps.Mark the answer as correct/helpful based on impact.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Shloke&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 02 Mar 2017 06:22:03 GMT</pubDate>
    <dc:creator>shloke04</dc:creator>
    <dc:date>2017-03-02T06:22:03Z</dc:date>
    <item>
      <title>Using a UI action to fire a Notification.</title>
      <link>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118099#M775025</link>
      <description>&lt;P&gt;There was another article i read "&lt;A title="how to trigger an event from a UI Action button" __default_attr="211477" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="how to trigger an event from a UI Action button" data-renderedposition="10_219_315_16" href="https://www.servicenow.com/community?id=community_question&amp;amp;sys_id=81140fe5dbd8dbc01dcaf3231f9619da"&gt;how to trigger an event from a UI Action button&lt;/A&gt; " thats pretty similar but im a bit confused with how you set this up. what code do i need to connect the event to the business rule? What code do i need to connect the event to the notification? How do i set up the UI action to call the event? Im pretty new to this and my coding is not strong. I have an event, a business rule, a notification and a UI action. How do i link all of these together so that when I click my UI action my notification is sent?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 00:39:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118099#M775025</guid>
      <dc:creator>austiin</dc:creator>
      <dc:date>2017-03-02T00:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using a UI action to fire a Notification.</title>
      <link>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118100#M775026</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Step 1:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;First you'd have to register an event in the Registry.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Step 2:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Once you register your event, you can hook a notification to it. &amp;nbsp; Within the notification, under "Send When:" Event is fired. &amp;nbsp; Under "Event:" select the event you just registered in step 1.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Step 3:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Call your event. &amp;nbsp; From a business rule it would look like: gs.eventQueue("eventName", context, parm1, parm2);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;At a bare minimum you just need the event name.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Check out:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;A href="http://wiki.servicenow.com/index.php?title=Events_and_Email_Notification#gsc.tab=0" title="http://wiki.servicenow.com/index.php?title=Events_and_Email_Notification#gsc.tab=0"&gt;http://wiki.servicenow.com/index.php?title=Events_and_Email_Notification#gsc.tab=0&lt;/A&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2017 01:00:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118100#M775026</guid>
      <dc:creator>justin_drysdale</dc:creator>
      <dc:date>2017-03-02T01:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using a UI action to fire a Notification.</title>
      <link>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118101#M775027</link>
      <description>&lt;P&gt;After that do i have to call the business rule somewhere in the UI action?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2017 01:37:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118101#M775027</guid>
      <dc:creator>austiin</dc:creator>
      <dc:date>2017-03-02T01:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using a UI action to fire a Notification.</title>
      <link>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118102#M775028</link>
      <description>&lt;P&gt;I mean the event haha my bad.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2017 01:42:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118102#M775028</guid>
      <dc:creator>austiin</dc:creator>
      <dc:date>2017-03-02T01:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using a UI action to fire a Notification.</title>
      <link>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118103#M775029</link>
      <description>&lt;P&gt;Hi Austin,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;1) Once the Event Has been setup under Registry module as shown below:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/74066i6499EC10CDAED2E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;2) Navigate to your respective UI Actions and configure the event submitted above &amp;nbsp; to trigger it from the UI Action as shown below in the example below:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/74068iB60C67CC241B5AE3/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;In the above screen shot you can specify the Event Name, post which Navigate to the Notification module and configure your Notifications accordingly as shown below:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/74064i6A4B5AF9D73248A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Select your Event Name as highlighted above and other condition when you want to send this Notification and to whom you want to send in "&lt;STRONG&gt;Whom will Receive&lt;/STRONG&gt;" section and Contents in "What it will Contain" section.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Hope this helps.Mark the answer as correct/helpful based on impact.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Shloke&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2017 06:22:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118103#M775029</guid>
      <dc:creator>shloke04</dc:creator>
      <dc:date>2017-03-02T06:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using a UI action to fire a Notification.</title>
      <link>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118104#M775030</link>
      <description>&lt;P&gt;I am still having an issue the event is still not firing, I have set up the notification correctly maybe its my code?&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Business rule code.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;(function executeRule(current, previous /*null when async*/) {&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; alert('Your message has been sent to the claimant.'); "Just so i can see its working."&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; gs.eventQueue('x_bonm_med_cam.Need Additional Documenta','current.record');&lt;/P&gt;&lt;BR /&gt;&lt;P&gt; &amp;nbsp; // Add your code here&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;})(current, previous);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Business rule code.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;UI Action code.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;gs.eventQueue('x_bonm_med_cam.Need Additional Documenta',current);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;action.setRedirectURL(current);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;UI action code.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2017 12:49:18 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118104#M775030</guid>
      <dc:creator>austiin</dc:creator>
      <dc:date>2017-03-02T12:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using a UI action to fire a Notification.</title>
      <link>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118105#M775031</link>
      <description>&lt;P&gt;I got it thank you guys for all your help ^^!!&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Mar 2017 12:59:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/using-a-ui-action-to-fire-a-notification/m-p/2118105#M775031</guid>
      <dc:creator>austiin</dc:creator>
      <dc:date>2017-03-02T12:59:50Z</dc:date>
    </item>
  </channel>
</rss>

