The CreatorCon Call for Content is officially open! Get started here.

Why is the event not firing?

honamiUeo
Tera Contributor

■assumption

・What we want to do is send an email to the users checked in the user table

・Email property settings.

honamiUeo_0-1694677348829.png

 

 

・I wrote this code in the script include

(In fact, we will store the address obtained from the ui action)

(I put sys_id Third argument and it didn't work.)

gs.eventQueue('sendEmail', current, 'sample@aaa.co.jp', 'firstname lastname');
 
・event registration
 
honamiUeo_1-1694677566447.png

 

・notification

 honamiUeo_2-1694677610519.png

 

・Checked.

Event parm 1 contains recipient
 
 
Can someone please help me?
 
1 ACCEPTED SOLUTION

DYCM
Mega Sage

Hello @honamiUeo ,

I think the issue is from the parameter1.png2.png

sysparam_checked in UI Action

sysparm_checked in Script Include

View solution in original post

23 REPLIES 23

Ankur Bawiskar
Tera Patron
Tera Patron

@honamiUeo 

so you are triggering event from UI action?

Did you see event logs?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

Thank you for thinking with me.

This event is triggered by a UI action.

honamiUeo_0-1694679559629.png

 

There is no log of this event firing in the event log.

@honamiUeo 

so from UI action you are doing GlideAjax

within the script include function you are using gs.eventQueue()

please share that script include function script

Is that script include client callable and getting called or not?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Ankur Bawiskar 

This process is described as such.

honamiUeo_0-1694682270925.png

 


Client callable.