How to copy email notification added to work notes

PRAGHATIESH S
Tera Expert

all release records in the New state that were not updated during last 8 weeks an appropriate notification will be sent to the Owner (Assigned to) and if not available then to created by (template should be used) copy of the e-mail added to work notes .  How to add that notification in worknote. can anyone help me.

1 ACCEPTED SOLUTION

Hi @PRAGHATIESH S ,

So you can achieve it through an inbound action.

find_real_file.png

In the target table field give the name of the table whose worknotes you want to update and then click on the actions tab in the same form page and follow the below step.

find_real_file.png

You can give any specific condition also if required.

Please mark my answer as helpful/correct if it helps.

Regards,

Maharshi

View solution in original post

5 REPLIES 5

Maharshi Chatte
Kilo Guru

Hi,

So the email will automatically be tracked in the activity log of the page. Now what do you want to add in the worknotes? Is it email body that you want to copy in the worknotes?

Regards,

Maharshi

Yes the email body will capture in the worknotes

Hi,

You can get it using email scripts to get the work notes to notifications.

 

Email script name - get_journal_email_body

Sample scripts -

(function runMailScript(current) {
	var html_str = current.comments.getJournalEntry(1).replace('[code]','');
	html_str = html_str.replace('[/code]','');
	template.print(html_str);
	
})(current);

 

Call email scripts in notifications as-

${mail_script:get_journal_email_body}

 

Take a look to article - Auto-populate Email Body using Email Script

 

Thanks,
Sagar Pagar

The world works with ServiceNow

Hi @PRAGHATIESH S ,

So you can achieve it through an inbound action.

find_real_file.png

In the target table field give the name of the table whose worknotes you want to update and then click on the actions tab in the same form page and follow the below step.

find_real_file.png

You can give any specific condition also if required.

Please mark my answer as helpful/correct if it helps.

Regards,

Maharshi