Script Tracing Question - Sequence of Execution

Jaime Daniel Co
Tera Contributor

Hi, I'm investigating a script or something that always runs after our workflow executes. Some script is changing the state value to a default of "Ready". I ran the script tracer however it shows that the state field got changed to Ready first then to Work in progress. In the newly created record under activities in the portal, the timestamp differs. it's saying that the state changed to work in progress then to ready. So my question is Does the script tracer displays the script in a random sequence or a step by step sequence? 

 

Thanks 

6 REPLIES 6

Rahul Talreja
Mega Sage
Mega Sage

Hi @Jaime Daniel Co ,
Have you considered using Field watcher on the state field, this can exactly tell you which the last script is running and updating state field value.
Refer here: Field watcher (servicenow.com)

Please mark my response correct/helpful as applicable!
Thanks and Regards,
Rahul

Hi Rahul, thanks for the reply. However the bug or problem exists during record creation. Can I still use field watcher if that is the case?

 

Hi @Jaime Daniel Co , Yes you can use field watcher in that case too!!

RahulTalreja_0-1691225779152.png

 

Please mark my response correct/helpful as applicable!
Thanks and Regards,
Rahul

Did it worked for you @Jaime Daniel Co ?

Please mark my response correct/helpful as applicable!
Thanks and Regards,
Rahul