Notification Sending via Schedule Job
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 10:45 AM
Hello everyone, I need some help!
I'm creating a notification sent via Schedule Job, but I'm facing some issues. Here's what I did:
First, I created an event: user_birthday.
Second, I created a notification triggered by this event.
Finally, I created a Schedule Job with the script as attached, but the users are not receiving the email.
If anyone can give me any tips, I would be grateful!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 10:52 AM - edited ‎02-29-2024 10:54 AM
Hi @Natanael ,
Did u check in event registry module whether the event got triggered or not when schedule job was executed?
If it's not getting triggered then there is some issue in the code which u have written. U can add logs after certain lines n check whether it is getting executed properly or not.
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-29-2024 11:14 AM
In the event log, there is no record of it.
In the event log, there is no record of it. The idea of the Schedule Job is to send a notification when the user is having a birthday. For this, I created a field in the sys_user table called u_birthdate. The script's function would be to take the date when the Schedule Job is being executed, compare it with the user's birthdate in the u_birthdate field, and if the user is having a birthday, the script triggers the event to send a notification. For this, I need the script to use only the day and month.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2025 09:54 AM
@Natanael are you doing this in a production instance or a lower instance? If you are in a lower instance, there is a property where you can configure who receives emails on lower instances.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-12-2025 09:58 AM
Hello
Make sure you add the second parm as well makering it in empty single quote's before you fire it.