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.

CMDB Instance API

Henrik Jutterst
Kilo Sage

Background

We are trying to clean up CMDB integrations to start using "CMDB Instnace API" instead of "Table API".

As I understand it, there are two ways of getting data:

  1. GET https://<instance>.service-now.com/api/now/cmdb/instance/{className}
    1. Only return name and sys_id
  2. GET https://<instance>.service-now.com/api/now/cmdb/instance/{className}/{sys_id}
    1. Return all fields that the user can see.

 

Question

Is there a way to get all fields from a table using the "CMDB Instnace API", just like "Table API", or can this only be done via Table API in ServiceNow?

Example:

 

Kind regards

/Henrik

2 REPLIES 2

Bharath Musku
Tera Contributor

Hi Henrik, We're trying similar process to inject data to ServiceNow and did you successfully implemented cmdb instance api method?

Thanks in advance!

 

Regards,

Bharath

Sorry I never came to any conclusion on this question. Let me know if you find anything.

Kind regards
/Henrik