- 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 05:19 AM - edited 12-26-2023 08:18 PM
Hi @Anil Lande ,
Problem only notification not triggered, however event triggered any point of testing.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 05:41 AM
Hi,
can you please share your current configurations?
1. Event Registry configuration
2. Notification Configuration (When to Run Condition)
Please do not scratch any script part (as it is technical and have no customer specific information. You can hide user, instance, etc details).
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 05:44 AM
Please recheck the event name in event registry and script.
There shouldn't be any extra character or whitespace.
Thanks
Anil Lande

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 07:23 AM
Glad to know your issue is resolved.
Can you please share the root cause and fix?
As you mentioned before the solutions you have marked correct didn't solved your issue and surprise to see your issue is resolved with previously provided suggestions.
Thanks
Anil Lande