
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 07:43 PM
Hello, all,
I'm proceeding with the exercise that was provided learning program "New to Servicenow". In that exercise, there is the topic to update NeedIt task record by sending email.
If the mail is processed properly, the mail body will be filled to work notes. But when I tried, the work notes was not updated. I checked the system log, the mail was processed. So, my question might be very basic, but if you can find any defect in my procedure, can you kindly share your thought?
Following are the log messages that were recorded in system mailbox mail log.
I'm not sure but I think, the message that is marked with yellow might be critical.
Any suggestion would be appreciated.
2022-03-16 19:17:07
Information Skipping script 'Create Story', email is type 'reply', which does not match Inbound Email Action's type 'new' EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Skipping script 'Create Incident', email is type 'reply', which does not match Inbound Email Action's type 'new' EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Skipping script 'Create Live Feed Like Reply', email is a reply, and the record it matches is not in the Inbound Email Action's table EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Skipping script 'Update Request Item', email is a reply, and the record it matches is not in the Inbound Email Action's table EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Skipping script 'Create Incident (Forwarded)', email is type 'reply', which does not match Inbound Email Action's type 'forward' EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Skipping script 'Update Incident (BP)', email is a reply, and the record it matches is not in the Inbound Email Action's table EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Skipping script 'Create Live Feed Reply', email is a reply, and the record it matches is not in the Inbound Email Action's table EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:00
Information Ready for update EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Skipping script 'Create Epic', email is type 'reply', which does not match Inbound Email Action's type 'new' EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:00
Information Received id=<CACv=azP4o=tcj=Q00e7MSRdGquaX4PNh_CvHeosgn+QbC6fB9A@mail.gmail.com> Classified as reply to 'NITASK003017' via watermark 'Ref:MSG0005346_Vv1zcsWLxW2wWvfxzDka' in message EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Email is classified as reply for triggers execution EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Skipping script 'Create Enhancement', email is type 'reply', which does not match Inbound Email Action's type 'new' EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Update NeedIt Task on Reply : did not create or update x_708879_needit_needit_task using current EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Skipping script 'Unsubscribe from Notification', email is type 'reply', which does not match Inbound Email Action's type 'new' EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Skipping script 'Create Defect', email is type 'reply', which does not match Inbound Email Action's type 'new' EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Stop processing detected after executing script: Update NeedIt Task on Reply EMAIL.65923291db1ac5108ae7b7e8f496197b
2022-03-16 19:17:07
Information Skipping script 'Process CAB meeting invite replies', email is type 'reply', which does not match Inbound Email Action's type 'new' EMAIL.65923291db1ac5108ae7b7e8f496197b
Thanks,
Oshikata
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 11:12 PM
if this is an exact copy of your code then you have a typo in below line
current.work_notes = emal.body_text;
its email.body_text

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 08:43 PM
without the actual code its hard to debug , do share the code you wrote , the log simply depict it executed the code but wasnt able to update the record

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 08:57 PM
Thank you for your reply, Ravi san.
I attached the screenshot of "Wen to run".
And following is script that has been defined in Action.
(function runAction(/*GlideRecord*/ current, /*GlideRecord*/ event, /*EmailWrapper*/ email, /*ScopedEmailLogger*/ logger, /*EmailClassifier*/ classifier) {
// Implement email action here
current.work_notes = emal.body_text;
current.update();
})(current, event, email, logger, classifier);
If the information is not enough, please let me know.
Thanks,
Oshikata

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2022 11:12 PM
if this is an exact copy of your code then you have a typo in below line
current.work_notes = emal.body_text;
its email.body_text

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2022 12:06 AM
Thank you, Ravi san,
It's my bad. I appreciate your pointing out.
I confirmed that incoming mail could update the record correctly.
Regards,
Oshikata