Business rule on sys_email table

JohnnySnow
Kilo Sage

Hi Team,

 

I want to use the event name in the business rule condition (created on sys_email table ). I'm not sure how to determine or rather dot walk the event name. Can some one please guide 

 

JohnnySnow_0-1689675246711.png

 

Thanks
Johnny

Please mark this response as correct or helpful if it assisted you with your question.
5 REPLIES 5

sushantmalsure
Mega Sage
Mega Sage

The even name which you see there is nothing but email log from table (sys_email_log).

from BR on sys_email table, you can write following script to get event name:

 

var getEvent = new GlideRecord('sys_email_log');
	getEvent.addQuery('email',current.sys_id);
	getEvent.query();
	if(getEvent.next()){
		gs.addInfoMessage('Event name is '+getEvent.event.getDisplayValue());
	}
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Regards,Sushant Malsure