How to pass user in eventQueue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā11-29-2023 05:26 AM
Hi Team,
I am trying to schedule a job that remove users groups and roles who have not logged in for last 3 months.
But while working on notification im stuck as its new for me.
I have gave admin directly in user field of notification in this case its sending notification for admin but not for specific users for whom role/group is deleted.
Kindly correct me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā11-29-2023 05:47 AM
You can do something like this:
gs.eventQueue( 'notify.user', gr, gr.sys_id);
This will trigger the event multiple times in the while loop
If my answer solved your issue, please mark my answer as ā Correct & šHelpful based on the Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā11-29-2023 06:44 AM
Hi Preethi
When you create an event for the notification you pass 2 parameters to the notification. You need one of them to be the sys_id of the target user.
Then in your notification on the "who will receive" tab select parm* contain the recipient. Either parm1 or parm2 depending on the event that you created.
I notice that you are trying to use user_name, swap this to sys_id of the recipient
Regards