- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2020 01:12 PM
Hello All,
We need to trigger an notification from UI Action without event generation. In Notification the 'Send When' field is set as 'Triggered'.
Thanks in advance for the help !!!
Solved! Go to Solution.
- Labels:
-
Analytics and Reports

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2020 02:41 PM
You can trigger flow action which has creates notification from UI action using Flow API which will trigger your existing notification.
(function() {
try {
var grIncident = new GlideRecord('incident');
grIncident.get('57af7aec73d423002728660c4cf6a71c');
var inputs = {};
inputs['variable'] = grIncident;
sn_fd.FlowAPI.startActionQuick('global.update_record_test', inputs);
} catch (ex) {
var message = ex.getMessage();
gs.error(message);
}
})();
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2020 09:54 AM
Triggered means when it's triggered by action in flow designer.
You can use triggered option only with flow designer.
In your case, you can generate event from UI action and make your notification trigger on event.
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2020 02:27 PM
Hello Sachin, Thanks for the response.
We already have a notification with 'Send When' as 'Triggered' and the notification is been triggering from a Flow (the Flow has other actions as well).
As part of my new requirment, We created UI action button and when someone clicks the UI action button it needs to send the same notification.
I don't want to create another flow just to trigger this notification. So I am looking for some code reference to send notification from UI action itself.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2020 02:41 PM
You can trigger flow action which has creates notification from UI action using Flow API which will trigger your existing notification.
(function() {
try {
var grIncident = new GlideRecord('incident');
grIncident.get('57af7aec73d423002728660c4cf6a71c');
var inputs = {};
inputs['variable'] = grIncident;
sn_fd.FlowAPI.startActionQuick('global.update_record_test', inputs);
} catch (ex) {
var message = ex.getMessage();
gs.error(message);
}
})();
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2020 04:36 PM
Thanks Sachin, I have add the code to trigger the action and it worked as excepted.