How to update the configuration item field with desired class on Incident form?

Suggy
Giga Sage

We are allowing incident creation from exteral platform via incident table API.

 

We have a CI named 'ABC' in windows server table.

we have another CI with same name 'ABC' but in Network switch table.

 

Now when an Incident needs to be created via REST API, the payload will be sent like this:

{
"caller_id":"Ram",
"assignment_group":"Netowrk Support",
"short_description":"test incident",
"cmdb_ci":"abc"
}

but how to select the CI from specific class, like I always want to select the CIs from server table?

 

3 REPLIES 3

Voona Rohila
Mega Patron
Mega Patron

Hi @Suggy 

Instead of querying cmdb_ci table, query on the particular class cmdb_ci_server table.


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Hi @Voona Rohila I have updated my question with more clarity. We are using Incident table API. 

I dont think what you answered is right for my question. Could you pelase read my updated question.

Thnks!

Suggy
Giga Sage

Anyone?