Dynamic sender configuration in email client
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2024 11:03 PM
Hi,
I need help to have sender configuration in email client. I need 'assigned to' email id in the Reply To field. I have written the code like this in the sender configuration of email client configuration, selecting script in From Generation Type, it is not working. Please let me know any one can help.
(function(fromAddressQuery, targetRecord) {
/**
* fromAddressQuery: A GlideRecord on the table "sys_email_client_from_address". Add conditions to filter the
* the email addresses displayed in the Email Client.
* targetRecord: A GlideRecord representing the record in which the Email Client was opened from
*/
var userGr = new GlideRecord('sys_user');
userGr.addQuery('sys_id', current.assigned_to);
if (userGr.next()) {
answer = userGr.email;
}
})(fromAddressQuery, targetRecord);
0 REPLIES 0