Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

{event.param1} and ${event.param2} in notification doing the same thing.

dev115415
Tera Expert

Hello

I am sending email from ServiceNow using Event triggering approach. 

I want to fetch the data from the 3rd and 4th parameter of eventQueue

gs.eventQueue('x_1041234_needlt.eventForSendingMail', '' , 'London', 'England'); as written in script include

                   Now in notifications, in email body, if I tend to use {event.param1}  then it returns England and not London as expected. Like both {event.param1} and ${event.param2} returning the same thing.

13 REPLIES 13

Ankur Bawiskar
Tera Patron

@dev115415 

you are not giving any recipient?

are you giving it at notification level?

Ideally it should give different values.

Did you try with some other event?

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

Hello Ankur I am sending email by providing users in the "Who Will Receive" section in notification.

Also I want to send a data from script include where I call the gs.eventQueue method to the email.

This is important. How to do it.

Thankyou

@dev115415 

ideally both the event parm1 and event parm2 should give you different values.

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

could you please tell me what is the meaning of --   ${event.abc} . Is event a built in variable of servicenow that it can access the eventQueue's parameters.