Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to get the initial state of an Incident at the time of creation..?

dattanarend
Tera Expert

Hi all,

I’m working on an Incident metrics report and I need to include the initial state of the Incident at the time it was created.

For example, I want to know whether the ticket was first created in New, On Hold, In Progress, etc. I only need the very first state when the record was inserted, not the current state.

Is there any out-of-the-box way to retrieve this initial state (e.g., via audit/history tables or a specific field),
suggest the recommended approach, what is the best practice to implement this?

Thanks in advance for your guidance! 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@dattanarend 

you can check sys_audit table and it will tell you the initial value

old value is the previous value and new value is the value it changed to

AnkurBawiskar_0-1764068744551.png

 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @dattanarend ou can use the sys_audit table, but it’s a heavy table and may take some time to load the data.”

*************************************************************************************************************
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]

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