Copy email sent vai email client to work notes

attanhes
Tera Guru

I am looking for a way to copy email content sent via email client to work notes. Email sent via email client is display in activity logs but it’s quite anoint for user’s to check in two section for response and original message what they have sent in two different places.

find_real_file.png

1 ACCEPTED SOLUTION

SanjivMeher
Kilo Patron
Kilo Patron

This is what I use.

 

I have created business rule with below condition. The reason for using async update business rule is, because it will not hold any email for execution. It will run independently.

find_real_file.png

And following is the script. This will store the data in HTML format in your work notes.

(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);

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

View solution in original post

7 REPLIES 7

Fantastic...

Well, if you don't mind, mark them as Helpful, if they were, and then pick whichever one you went with as Correct.

I did not now you needed the watermark or that that was important to you.

The email client places a complete log entry in your activity formatter of what was sent and the work notes are also in the activity log, so it's really one place anyway. If the watermark is important to you, you'd already have it in the entry that is literally right near the worknote, but...if you'd like it in the watermark in the worknote too, use Sanjivs.

Take care!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi, just wanted to check-in on this. Please mark the reply Correct that answered your question and any others as Helpful as that helps show your question as resolved, gives credit to the posters and lets other users who may have the same question see the correct answer faster.

Thanks so much!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Hi,

If you don't mind, please at least mark my reply as Helpful, if it was.

Take care!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!