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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Nivedha G 

 

You need to make change in script. 

https://www.servicenow.com/community/itsm-forum/help-with-inbound-action-did-not-create-or-update-lt...

https://www.servicenow.com/community/developer-forum/did-not-create-or-update-incident-using-current...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG 

    I have referred to these solution, but those solution have used current so current.update(); works for them. But in my case since its if else part I haven't used current, so those solution provided doesn't work for my scenario.Could you please help me with other solution ?

 

Thanks in advance

GopikaP
Mega Sage

Hi @Nivedha G , Please refer this - Inbound Action skipping message incorrect - Support and Troubleshooting, you have to use 'current.insert()' and 'current.update()''.

Ankur Bawiskar
Tera Patron
Tera Patron

@Nivedha G 

in your else part, don't initialize but please use current object to create record

once done the email record will have that target field populated in it

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