How to find Application Service with the help of SYS_ID

sahana1998
Tera Contributor

How to find Application Service with the help of SYS_ID

 

Can anyone help me on this.

 

6 REPLIES 6

Kieran Anson
Kilo Patron

If you've got the sys_id of the record you can directly query it either on the cmdb_ci table, or the cmdb_ci_service_auto table

Could you please provide me the setps

Hi, Can you go to 'cmdb_ci' table and search your sys_id in that table. Pls check the application name is available?

 

Regards,
Suresh.

Ashish Parab
Mega Sage

Hello @sahana1998,

 

You can find an Application Service record using the following methods:

  1. Using the Application Services List

    • Navigate to the Application Services table and apply the filter condition: sys_id is 'your_sys_id'.
  2. Using the SN Utils Chrome Extension (recommended method)

    • Download and install the SN Utils Chrome extension.
    • In your ServiceNow instance, use the keyboard shortcut Ctrl + /, then paste any valid sys_id to quickly retrieve the record.
  3. By Using Background Script as below,

 

var sysId = 'your_sys_id';

// Query the Application Service (cmdb_ci_service) table
var appServiceGR = new GlideRecord('cmdb_ci_service');
if (appServiceGR.get(sysId)) {
    gs.print('Application Service found: ' + appServiceGR.name);
    gs.print('Details: ' + appServiceGR.getDisplayValue());
} else {
    gs.print('No Application Service found with sys_id: ' + sysId);
}

 

 

Please mark this as "correct" and "helpful" if you feel this answer helped you in anyway.

 

Thanks and Regards,

Ashish