Script Tracing Question - Sequence of Execution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2023 12:30 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2023 01:38 AM - edited ‎08-05-2023 01:39 AM
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)
Thanks and Regards,
Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2023 01:49 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2023 01:56 AM
Hi @Jaime Daniel Co , Yes you can use field watcher in that case too!!
Thanks and Regards,
Rahul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-05-2023 04:44 AM
Did it worked for you @Jaime Daniel Co ?
Thanks and Regards,
Rahul