- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-05-2024 02:12 AM
Hi There,
I'm creating a custom notification and want to add email id of DL as a recipient of the email. I think to add an email id we need to call event parameters from business rule using gs.eventQueue() method. I'm using "approval.inserted" event and also ticked this checkbox.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-05-2024 03:02 AM
Hi,
Make sure send to event creator checkbox is checked
Try this gs.eventQueue('approval.inserted',current,'emailid', gs.getUserID());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-05-2024 02:47 AM
Hello @Unic0rns ,
Could you provide the complete business rule if possible. I want to understand the what is the value of emailid variable which you are using in param 1.
gs.eventQueue('approval.inserted',current,'emailid');
If emailid is the variable, then it should not be enclosed in single or double quotes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-05-2024 03:21 AM
gs.eventQueue('approval.inserted',current,'xxxx@gmail.com');
Like this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-05-2024 03:02 AM
Hi,
Make sure send to event creator checkbox is checked
Try this gs.eventQueue('approval.inserted',current,'emailid', gs.getUserID());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā06-05-2024 09:39 AM
Thanks Shruti. It worked.