- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2024 09:43 AM
I have created a business rule that fires an event which triggers a notification being sent on my change_request table. The issue I am running into is in the notification preview the reference fields are pulling correctly from the change record. However, when the email is delivered the fields are blank. I just have gotten the event to fire from the business rule script as I am just now starting my java script journey. Do the fields I need to pass in the event need to be added to the business rule script? If so, how would I add those?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2024 10:04 AM
There is a parameter you are missing.
You need to pass the record object in the gs.eventQueue function for the notification to know, on which record it needs to run the notification.
So if you are triggering job on the current record, you should do
gs.eventQueue('critical.change.24.hours', current);
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2024 09:57 AM
In order to correctly trigger an event, you need to pass 4 parameters to the gs.eventQueue() method. See API documentation for details.
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2024 10:04 AM
There is a parameter you are missing.
You need to pass the record object in the gs.eventQueue function for the notification to know, on which record it needs to run the notification.
So if you are triggering job on the current record, you should do
gs.eventQueue('critical.change.24.hours', current);
Please mark this response as correct or helpful if it assisted you with your question.