Reply to an email from Journal field using script

sakshi1707
Tera Contributor

Hey community,

I want to reply to the email from journal field present in catalog task record, with the help of script. I am not using the script in business rule.
I am unable to access the reply button to add comment to the mail through script. Could you please help me with this?

sakshi1707_0-1754049443280.png


Thanks in advance.

 

2 REPLIES 2

kaushal_snow
Mega Sage

Hi @sakshi1707 ,

 

** Create an Inbound Email Action

Table: sc_task
Type: Reply
Set your desired conditions, e.g. based on subject, sender, or keywords

 

** Use a Script to Add Journal Entry, include code on the Action:


if (current.getTableName() === 'sc_task') {
current.comments = "Reply from " + email.origemail + "\n\n" + email.body_text;
current.update();

 

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

Ankur Bawiskar
Tera Patron
Tera Patron

@sakshi1707 

unable to access means -> you can't see?

Admin or non-admin?

if it's seen with admin then what happens on click of that?

Any browser console error?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader