How do I update record with inbound mail?

Oshikata1
Tera Contributor

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

1 ACCEPTED SOLUTION

Ravi9
ServiceNow Employee
ServiceNow Employee

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

View solution in original post

5 REPLIES 5

Ravi9
ServiceNow Employee
ServiceNow Employee

Kakkoi!