- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2016 02:30 AM
Hi
how to get a record detail from a sys id. Where can it be checked from?
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2016 03:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2016 04:25 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2016 04:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2019 08:46 AM
thank you! it was very helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2016 04:05 AM
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