How to copy the email adding work notes?

Shashi K
Tera Contributor

for all changes in  in the Review State that awaiting approval for which  Actual End Date passed at least 4 months ago a notification with a request to approve the change and progress it to the closure (template should be used) will be sent to the approver(s), the change owner (assigned to), copy of the e-mail added to work notes(only for selected notifications)
for same change record and notification

2 REPLIES 2

Community Alums
Not applicable

Hi @Shashi K ,

OOTB the emails which are sent could be seen in the activity.

If you cannot see incoming emails go to the Activity list > right click on "Activity" and select > configure Activities>You should have the option to add Sent/Received emails to the list box on the right hand column.

Also check the system property glide.ui.activity.email_roles to ensure your allowing users to see the emails by default this should be "itil"

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

Shashi K
Tera Contributor

(function executeRule(current, previous /*null when async*/) {     var rec = new GlideRecord(current.target_table);     rec.addQuery('sys_id',current.instance.toString());     rec.query();     if (rec.next())     {         rec.work_notes = 'Sent By:'+current.sys_created_by+'[code]'+current.body+'[/code]';         rec.update(); } })(current, previous);

we tried above script with assync & after businedd rule, but email is copied twice to worknotes. we gave conditions based on email subject target table is change,subject contains "XXXXXXX"