- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2024 01:22 AM
Hey everyone! I have a requirement to flag a notification as external/internal, and based on this, I use the advanced condition to verify this flag against the recipients, and allow/abort the action. I can't find a way of accessing the notification object from the advanced condition, as the "current" gives me the record which this notification is configured against (eg. incident). Any idea? If anyone did this in the past, I much appreciate some inputs (even a different approach for a similar result is more than welcome!)
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2024 02:30 AM
Unfortunately there is no global variable defined for accessing the current notification record, the only js vars available (with a value) are
- current
- previous
- answer
- gs

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2024 03:31 AM
Hello @Matias7 ,
Have you tried gliderecord query for getting the current notification object ?
If not then you can use below simple code to get it.
***************************************************************************************

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2024 01:37 AM
Is this within a business rule on sys_email where you're wanting to identify the email notification that the current sys_email record relates too?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2024 01:47 AM
I want to put the condition in the "advanced condition" within the notification configuration. A similar example is the "Incident Resolved" notification (see attachment). But instead of using an incident information, I want to use information from the notification itself, and not send a notification for external accounts when it is classified as internal. Does that make sense?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2024 02:30 AM
Unfortunately there is no global variable defined for accessing the current notification record, the only js vars available (with a value) are
- current
- previous
- answer
- gs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2024 03:03 AM
Thanks for your reply Kieran.