current.operation() is null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2017 08:13 AM
Hello Community,
Any reason why current.operation() would always be null in an email notification script? As I understand it, .operation() is a GlideRecord method. In the email script, current returns a GlideRecord of the current record. What am I missing here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2021 12:47 AM
Hello Chuck,
Sorry for being a bit late on this but I recently came across this issue and thought replying here instead of raising the same question over again.
I believe the issue I have is similar in that I have an inbound action which when the conditions are met it creates a service request, a requested item, and inserts the details in the variables as well. However, the OOTB BR which triggers an event is based on an if condition: current.operation == 'insert'. However, debugging this I found that on insert the current.operation is null when the insert is triggered from the inbound action.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2018 08:47 AM
I have a need for this exact same behavior as well. I need the notification to do one thing if it's INSERTED, and another if it's UPDATED. It appears that I'll unfortunately need to create two (2) separate notifications. 😞