- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 04:39 PM
There was another article i read "how to trigger an event from a UI Action button " 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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 10:22 PM
Hi Austin,
1) Once the Event Has been setup under Registry module as shown below:
2) Navigate to your respective UI Actions and configure the event submitted above to trigger it from the UI Action as shown below in the example below:
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:
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 "Whom will Receive" section and Contents in "What it will Contain" section.
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 05:00 PM
Hi,
Step 1:
First you'd have to register an event in the Registry.
Step 2:
Once you register your event, you can hook a notification to it. Within the notification, under "Send When:" Event is fired. Under "Event:" select the event you just registered in step 1.
Step 3:
Call your event. From a business rule it would look like: gs.eventQueue("eventName", context, parm1, parm2);
At a bare minimum you just need the event name.
Check out:
http://wiki.servicenow.com/index.php?title=Events_and_Email_Notification#gsc.tab=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 05:37 PM
After that do i have to call the business rule somewhere in the UI action?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 05:42 PM
I mean the event haha my bad.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2017 10:22 PM
Hi Austin,
1) Once the Event Has been setup under Registry module as shown below:
2) Navigate to your respective UI Actions and configure the event submitted above to trigger it from the UI Action as shown below in the example below:
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:
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 "Whom will Receive" section and Contents in "What it will Contain" section.
Hope this helps.Mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke