Reply to an email from Journal field using script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2025 04:58 AM
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?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2025 05:09 AM
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();
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2025 05:38 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader