Rest api - Filtering cmdb_ci by reference values.

Saita
Kilo Explorer

Hi,

My team uses Service Now to handle incidents. They have a category and subcategory fields that, once selected, are use to filter value for a Configuration Item field.

My current task is: using Service Now rest api, I need to fetch cmbd_ci values by those two fields.

I am not sure how to achieve that. When I read cmdb_ci table, I don't see and information on those two previous fields.

I am not sure how they configured this dependencies so I am lost here.

Thanks in advance.

4 REPLIES 4

sachin_namjoshi
Kilo Patron
Kilo Patron

you can use REST API explorer to read ci values based on category and subcategory values for existing incident records.

 

find_real_file.png

 

Regards,

Sachin

Unfortunately I don't have access to that explorer and it would take weeks to have it, if at all.

Apparently, the Service Now team over my company believes that me, as a developer, should not have access to the user interface at all, just access to the APIs.

IF you don't have access to UI, then how will you test your developed code?

This seems strange to me.

Anyway, there are many REST debugging tools for your help.

 

You can test your published API using POSTMAN also.

 

https://www.getpostman.com/downloads/

 

Regards,

Sachin

I do have some kind of access to the UI (not that they are aware of =\) but I can't find the rest api explorer. I probably need to have some kind of special access but the access I have doesn't have it.

 

I am using postman already, but the problem is that when I query the cmdb_ci api, I have no idea how to filter the results based on those category and subcategory fields I mentioned.

I might be missing some other api that holds that relationship.