Why notification is not getting send?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 04:53 AM
Hi all,
I want to send notification whenever the hr case is getting updated but I dont know why its not working
upto
event
notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 01:36 PM - edited 10-31-2023 01:37 PM
It seems to me you are providing the wrong parameters to gs.eventQueue(): in the last picture event sn_hr_core.trigger_two_weeks_before_orgc is shown as defined for table sn_hr_core_case, but you are passing in gr as 2nd parameter; however on line 5, gr is defined for table question_answer.
It should be:
gs.eventQueue('sn_hr_core.trigger_two_weeks_before_orgc', gc, gc.opened_for, null);
Next time you decide to take no. 2 on spacing, formatting, variable naming and (not) using functions, remember the words of John F. Woods. 😄
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2023 09:42 PM
You're passing the object gr (question_answser) while the event was defined in the sn_hr_core_case table.
Let's correct it to gc (sn_hr_core_case) instead.
If it still doesn't work, let's try to have a look into the Event Queue.
You can also access record producer variables by using <GlideRecord>.variables.<variable_name>.
Cheers,
Tai Vu