Business rule on sys_email table
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2023 03:18 AM - edited 07-18-2023 03:25 AM
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
Thanks
Johnny
Please mark this response as correct or helpful if it assisted you with your question.
Johnny
Please mark this response as correct or helpful if it assisted you with your question.
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2023 01:54 PM
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
Regards,Sushant Malsure