current.operation() is null

Ken83
Mega Guru

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?

6 REPLIES 6

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.

xiaix
Tera Guru

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.  😞