How to trigger notification to caller from script include

Umasankar Guth1
Tera Contributor

Hi All,

 

We have an inbound action that create incident and when there are keywords on email, a sperate script include is there to call the keywords from inbound.

And when there is non relevant keywords, from script include i have restricted creating incident through setAbort(true) action. in this case I want to trigger notification to caller saying due to invalid keywords incident didnt created.

I have written an even and notification tested this on incident table as well as on sys_email table but event is not firing.

Condition in script include:

else{
                gs.eventQueue('email.rejected',current,email.from);
                current.setAbortAction(true);
                }
 
Please suggest.
1 ACCEPTED SOLUTION

@Umasankar Guth1 

 

I believe the event is not even being fired from script include

Please check if event is getting triggered by navigating to System Log > Events and searching by event name. Also check if Parm1 and Parm2 contain valid values if you find the event record

 

ManmohanK_0-1686220989064.png

 

View solution in original post

7 REPLIES 7

Manmohan K
Tera Sage

Hi @Umasankar Guth1 

 

Have you selected below option in the notification you created

 

ManmohanK_0-1686215697787.png

 

Hi Manmohan Yes, checked that.

UmasankarGuth1_0-1686217184088.pngUmasankarGuth1_1-1686217214102.png

 

@Umasankar Guth1 

 

I believe the event is not even being fired from script include

Please check if event is getting triggered by navigating to System Log > Events and searching by event name. Also check if Parm1 and Parm2 contain valid values if you find the event record

 

ManmohanK_0-1686220989064.png

 

Hi Manmohan,

 

I checked in event logs and observed logs are generating on incident table.

But I have created event and notification on sys_email table.

 

Please suggest.