How do I get an outbound notification into the work_notes field?

chr_kluge
ServiceNow Employee
ServiceNow Employee

Hi everybody

 

I have a custom notification for contatctin a third party. I want to get the whole Email into the work_notes.

Like it is if I send an email via the quick message icon in the form header.

But there seems to be no outbound email action. So how can I acomplih this?

 

Thanks for your help!

Christina

1 ACCEPTED SOLUTION

OK, in my instance when I use the Quick message to send an email I do not have the email copied to either comments or work_notes.. so this must be a custom development in your environment..



One way to do it could be to create a business rule on the sys_email table that only triggers when the recipient contains your third party email address. When a match is found you could copy the body of the sys_email to the target.work_notes of the incident/request.



How are you with writing business rules?



The only thing with this solution is it could add unnecessary processing to your sys_email table!



An alternative solution could be to add a mail script to the notification.. the mail script can then copy the message to the tasks work_notes.



I would write something up in a demo instance but I am pretty poor on time at the moment. Let me know if you want me to help write this and I will try and find some time, otherwise someone else may be able to knock this up for you quickly!


View solution in original post

13 REPLIES 13

Hi Jamie



Thank you very much for this advice. So I think I'm pretty good at BR or general scripting. I uesed to be a Java Developer 😉


So I'm going for the solution of the mail script if the BR decreases the performance.



Thank you very much for helping me!


Christina


Hi Christina,



I know the post is pretty old, but I would like to do something similar like you had done this.


I would like to copy my email body into the worknnotes. Can you please help me with the code or something?



Thanks in advance!


Regards


Jyo


chr_kluge
ServiceNow Employee
ServiceNow Employee

Hi Jyo


Unfortunately we did remove this functionality one year ago. So I don't have the example anymore and can't quite remember how we did it.



But what we did: we added the emails to the activity formatter. So there's no need now for us to add the email text to the notes 🙂


If you'd prefer still to add them to the work notes let me know and I can give you an sample business rule. Therefore I'd need you specific requirements. And please note that you can't differentiate between quick messages and normal notifications.



Best Regards


Christina


No problem Christina!


I have got this working few days back.



Thanks for your time!



Cheers!


Hey Jyo



Could you please share how you have achieved this. Im kind of struck at the same point.



Thanks