- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2022 02:44 AM
What is the Syntax to call to email notifications in business rules?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2022 03:09 AM
Hello
While triggering the BR, You can use below line of code -
gs.eventQueue('event.name', GlideRecord, parm1, parm2); // standard
gs.eventQueue('Event_Name', current, gs.getUserID(), gs.getUserName());
If my it helps please mark it helpful.
Cheers..!
Happy Learning 🙂
Tushar
Cheers..!
Happy Learning:)
Tushar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2022 03:09 AM
Hello
While triggering the BR, You can use below line of code -
gs.eventQueue('event.name', GlideRecord, parm1, parm2); // standard
gs.eventQueue('Event_Name', current, gs.getUserID(), gs.getUserName());
If my it helps please mark it helpful.
Cheers..!
Happy Learning 🙂
Tushar
Cheers..!
Happy Learning:)
Tushar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2022 03:11 AM
Hii @Shikha puri,
could you tell me your business requirement because I am not getting the question.
Regards,
Imran Ahmad
Mark Helpful below:-

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2022 04:37 AM
Hi,
There is no predefined flow/syntax to call email notifications from BR.
If you wanna trigger any notification from Business rules then you need to do below steps -
1. Create an event in Event Registery (ex. group.approval.for.incident) Specify the table name - Incident
2. Now Call this event from your BR gs.eventQueue('Event Name', Gilde Record, parameter 1, parameter 2); For example - gs.eventQueue('group.approval.for.incident', current, 'parameter 1', 'parameter 2'); specify any parameters if you wanna pass to your email.
3. Now on notification in When to Run condition select on Event Fired and choose your event name. Your emil will be triggered whenever your BR will run.
Mark this as Helpful/Correct, if Applicable.
Regards,
Sourabh