- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2023 10:14 PM
Hi All / @Ankur Bawiskar / @Anil Lande ,
As per requirement have to send a mail simultaneously when inbound email action is triggered. Inbound email action triggered but event-based notification is not triggered.
//Inbound Email action on table "sys_email".
Notification:
This event-based notification is not triggered. We received log about "Inside true condition".
Could you please guide me ?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 03:57 AM
var ga = new GlideRecord('sn_hr_core_case');
if(ga.get('<sys_id of your case record>'))//pass sys_id of your case
{
gs.eventQueue('sn_hr_core.cmt.case.respond', ga, 'xyz.com','xyz.com');
}
Also, please make sure that the email you are passing in param1 and 2 should be a valid email.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 05:10 AM
//var h_profile = new GlideRecord('sn_hr_core_profile');
//h_profile.addQuery('personal_email', email.origemail);
//h_profile.query();
//if (h_profile.next()) {
//if(h_profile.u_contractual_country == "IN"){
//gs.info("Inside true condition");
gs.eventQueue('event name', current, '<put valid email id here>','<put valid email id here>' );
//}
//}
Replace your inbound script with the above script and replace <put valid email id here> with a valid email id and check if it triggers the notification.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 02:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 02:45 AM
Hi @Sandeep Rajput ,
Checked 4 point, no pending emails. However, in event log i see the event is executed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 03:18 AM
@abirakundu23 I recommend you to try trigging this event via a background script by providing a glide record in place of the current record and a hard coded email id in param1. See if this triggers an email.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 04:46 AM
In your logs you have value for Parm2, but in your inbound action parm2 is blank.
Is it same script you are trying?
Can you please share the logs generated through inbound action script?
When you are testing it through background script are you passing the same values in Parm1?
Try using try-catch in your inbound action script and put more logs to track your script execution.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 03:33 AM - edited 12-26-2023 03:38 AM
hi @Sandeep Rajput ,
is the below code is sufficient ?
However i blocked entire code logic & triggered that time also its work.