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

Email notification "Event parm 1 contains recipient" not working

DoDo labs___
Mega Sage

Hi!

 

 

If I set a user in the email notification "Users", he receive the email.
However, when I use “Event parm 1 contains recipient,” that user doesn’t.
In the Message HTML, I print the value of parm 1 like this: ${event.parm1}.
The sys_id appears correctly in the email body.
I also tried sending an email address — it also shows up correctly in the body.
But only the user defined in the “Users” field receives the email; the one from parm 1 does not.

Here’s the scheduled script:

 

var userek = new GlideRecord('sys_user');
userek.addQuery('sys_id', '1a88d14a47a4dd90a7a05502e26d4327');
userek.addQuery('active', true);
userek.addQuery('locked_out',false);
userek.addNotNullQuery('ldap_server');
userek.addNotNullQuery('last_login_time');
userek.query();
while (userek.next()) {

gs.eventQueue("FIG_TEST", userek, userek.sys_id, userek.email);
}

1 REPLY 1

Anand2799
Tera Guru

Hi @DoDo labs___ ,

 

Did you checked on event log record shows correct sys_id and email?

 

On notification record make sure Event parm 1 contains recipient and Event parm 2 contains recipient are checked.

If you are sending it to yourself then also select Send to event creator.