logs shows message as Didn't create or update incident using current when creating incident

Nivedha G
Tera Contributor

Hi,

   I have created an inbound email action to create and update incident. The issue I am facing is even though incident is getting created or updated the logs shows "Did not create or update incident using current". This is the inbound script I have used:

NivedhaG_0-1741271237815.png 

NivedhaG_2-1741271741316.png

 

And in email once the email is received , the Target field should be updated with the existing incident number since subject is same to which it got mapped but its empty.

NivedhaG_1-1741271548815.png

Thanks in advance

 

8 REPLIES 8

Hi @Ankur Bawiskar 

    I have changed my else part with current so its working now,but now issue is with If part. Additonal comments is getting updated but in sys_email table the target field is empty where i need the updated incident record to be mapped in target field

 

Thanks in advance

@Nivedha G 

the IF part means incident is already present so the INC should be updated on target field in email

If the inbound action is of type Reply then that field should get populated OOB

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

@Nivedha G 

the IF part means it found the record, so please use current.update() instead of glideRecord object

Empty Target record on processed emails 

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

@Nivedha G 

Hope you are doing good.

Did my reply answer your question?

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