- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2021 06:29 AM
Hi Team,
When a case is assigned to a Group/User (Assigned To) notification will be triggered.
If the user just replies to that email triggered then whatever he replies that should get updated in the Additional Comments/Work Notes.
Thanks in Advance,
Balaraju
Solved! Go to Solution.
- Labels:
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2021 06:44 AM
Hi,
yes check this OOB Inbound action on Approval table
Whatever comments approver mention will be added to comments
Name: Update Approval Request
URL: https://instanceName.service-now.com/nav_to.do?uri=sysevent_in_email_action.do?sys_id=b43ef438c611227100a9aa83fe121dda
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2021 06:43 AM
Hi Balaraju,
If you look at the OOB 'Update Incident (BP)' on inbound actions you can see details of how to put the email body to the comments:
gs.include('validators');
if (current.getTableName() == "incident") {
var gr = current;
if (email.subject.toLowerCase().indexOf("please reopen") >= 0)
gr = new Incident().reopen(gr, email) || gr;
gr.comments = "reply from: " + email.origemail + "\n\n" + email.body_text;
if (gs.hasRole("itil")) {
if (email.body.assign != undefined)
gr.assigned_to = email.body.assign;
if (email.body.priority != undefined && isNumeric(email.body.priority))
gr.priority = email.body.priority;
}
gr.update();
}
I had a look and couldn't see an OOB action that was updating the comments on a case record.
You would just need to create something similar to above but for the case table.
Hope this helps
Thanks
Sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2021 06:43 AM
What table are you referring to? For example, for incidents by default this is not done for replies, only for new messages, but you can easily achieve this by adding the following code to your inbound email action:
current.comments = "received from: " + email.origemail + "\n\n" + email.body_text;
Blog: https://sys.properties | Telegram: https://t.me/sys_properties | LinkedIn: https://www.linkedin.com/in/slava-savitsky/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-22-2021 06:44 AM
Hi,
yes check this OOB Inbound action on Approval table
Whatever comments approver mention will be added to comments
Name: Update Approval Request
URL: https://instanceName.service-now.com/nav_to.do?uri=sysevent_in_email_action.do?sys_id=b43ef438c611227100a9aa83fe121dda
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-25-2021 10:47 PM
Hope you are doing good.
Did my reply answer your question?
If so, please mark appropriate response as correct & helpful so that the question will appear as resolved for others who may have a similar question in the future.
Thanks!
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader