- 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 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 04:37 AM
Thanks for your input Rajesh! This for sure is an option that at first I was trying to avoid as it was an "additional unnecessary" query at the time, but I think is the best option we have for this. Thanks!