Notification sent via event not working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 05:32 PM
Hi all,
I have added a field to the user table that stores peoples end date with the intention of sending notifications to anyone who has an end date 14 days from now.
To do this I have a scheduled job that would be set to fire once a day (currently executing it manually to test it).
The event registry has the event in it with the table set as sys_user (where the expiry date is stored):
I then have a notification set to send when the event is fired:
Currently I have no conditions set as I just want to prove the notification is sent at all.
The "Who will receive" currently is just set to send to myself and what it will contain just has some text in it so it will not be empty.
From my understanding this should work however it isn't. In the event log I can see an event being created, called the correct thing, but the table is blank and it also seems to have no other details in it.
Any help would be much appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 05:42 PM
Hello @Moedeb,
You must pass additional parameters while triggering the event.
Trigger the event like this.
gs.eventQueue('x_60157_employee_spe.employeeOccasion',current,current.number,gs.getUserName());
The eventQueue() method inserts an event in an event queue. The eventQueue() method is typically passed four parameters but can also take an optional 5th parameter:
- Event name. Enclose the event name in quotes.
- GlideRecord object, typically current but can be any GlideRecord object from the event's table.
- Any value that resolves to a string. This is known as parm1 (Parameter 1). Can be a string, variable that resolves to a string, or method that resolves to a string.
- Any value that resolves to a string. This is known as parm2 (Parameter 2). Can be a string, variable that resolves to a string, or method that resolves to a string.
- (Optional) Name of the queue to manage the event.
Hope this helps.
Swarnadeep Nandy

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 11:22 PM
@SwarnadeepNandy thank you for the info, I understand now that I need to add more parameters to my script, however I donb't know which ones I need to add, so I'm hoping that you can help me out a bit more please.
Here is some info that hopefully helps you to help me?
Event Name | check.expiry.date |
Expiry Date Field | u_employeeleavedatetime |
Table | sys_user |
The hope is to send an email notification to the user that meets the criteria, which will ultimately be a date 14 days from 'now'.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2023 07:50 PM
Is anyone else able to assist please?