abdul_qulatein
Giga Expert
Options
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 02-10-2019 01:58 AM
1. Create a Notification Email Script:
attachPhoto();
function attachPhoto() {
//Check if current assigned to user has a photo.
var gr = new GlideRecord('sys_user');
gr.addQuery('name',current.assigned_to.name);
gr.query();
if (gr.hasNext()) {
while (gr.next()) {
var photo = '<img src="' + gr.photo.getDisplayValue()+ '">';
template.print(photo + "<br />");
}
}
}
2. You can then use the above script in any notification which has access to the 'assigned to' field by adding this line in the notification: ${mail_script:add_assigned_to_photo}