The Zurich release has arrived! Interested in new features and functionalities? Click here for more

What is the Syntax to call to email notifications in business rules?

Shikha puri
Tera Contributor

What is the Syntax to call to email notifications in business rules?

1 ACCEPTED SOLUTION

eumak
Tera Guru

Hello @Shikha puri ,

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

Mark it as helpful or correct, If Applicable


Cheers..!

Happy Learning:)

Tushar

View solution in original post

3 REPLIES 3

eumak
Tera Guru

Hello @Shikha puri ,

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

Mark it as helpful or correct, If Applicable


Cheers..!

Happy Learning:)

Tushar

Imran Ahmad1
Kilo Guru

Hii @Shikha puri,

 

could you tell me your business requirement because I am not getting the question.

 

Regards,

Imran Ahmad

 

Mark Helpful below:-

Sourabh26
Giga Guru

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