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.

Where to check the Sys id value

snowenthuziast
Kilo Contributor

Hi

how to get a record detail from a sys id. Where can it be checked from?

thanks

1 ACCEPTED SOLUTION
13 REPLIES 13

Hi,



The script in the second link works fine and the script iterates through all the tables in the system, so it finds any sys_id/table combination.



Run the script in "Scripts - Background" and add a row containing your sys_id reference before the script itselt. Read the article thoroughly and you will get it running.



gs.print(findAnywhere('2926e3e5a961a2000a08919111e610fe', false));



>> add the rest of the script here...in the Scripts - Background window.



My own example returned this:



[0:00:20.633] Script completed in scope global: script


*** Script: https://yourinstance.servicenow.com/incident.do?sys_id=2926e3e5a961a2000a08919111e610fe



- Jan


Hi,



I have seen another version of this code:


https://servicenowgems.com/2016/08/15/finding-a-sys_id-across-the-system/



Tried it on our Helsinki version, but did not get it to work (gives "java.lang.IndexOutOfBoundsException" error).



So if you are on a earlier version, you could have a try with it (could work).



- Jan


thank you! it was very helpful

Kaka Nayeem
Tera Guru

Hi Ranjan,


    Table name is mandatory for finding record by using sys_id.



Thanks,


Kaka Nayeem



PS: Hit like, Helpful or Correct depending on the impact of the response