Notification Sending via Schedule Job

Natanael
Tera Contributor

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!

4 REPLIES 4

Danish Bhairag2
Tera Sage
Tera Sage

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

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.

neil_b
Tera Guru

@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. 

Anurag2089
Tera Contributor

Hello
Make sure you add the second parm as well makering it in empty single quote's before you fire it.