How to use gs.trace in a script

J_47
Tera Contributor

Hello All,

 

How can i use gs.trace in a script. And where can I see the results?

 

Also in case if one of my scripts has multiple glide records how  can i check how much each query is taking time individually to return results

1 REPLY 1

SN_Learn
Kilo Patron
Kilo Patron

Hi @J_47 ,

 

Please check the below post:

https://www.servicenow.com/community/developer-blog/json-parsing/ba-p/2279166 

 

For the second query, check this post:

https://www.servicenow.com/community/cmdb-forum/create-ci-from-asset-using-button/m-p/244567 

https://www.servicenow.com/community/developer-blog/community-code-snippet-server-side-millisecond-t... 

 

----------------------------------------------------------------
Mark this as Helpful / Accept the Solution if this helps.