{event.param1} and ${event.param2} in notification doing the same thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 10:21 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 10:25 PM
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?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 10:29 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 10:46 PM
ideally both the event parm1 and event parm2 should give you different values.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2023 11:54 PM
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.