Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to create Server CI in CMDB (duplicate sys_id problem)

rseekell
Kilo Contributor

I am writing a PowerShell script to create records in the cmdb_ci_win_server table.

I can create the first one successfully, but when I create the second one, it overwrites the first one.

I look at my output, and I see that both have the same sys_id.  

I am using the URL https://instance/api/now/cmdb/instance/cmdb_ci_win_server per default URL from here: https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/integrate/inbound-rest/concept/cm...

 

How do I get the API to create records with different sys_ids every time? Thanks.

 

P.S. I am not the SNOW admin, but I am using an API account delegated to me. 

0 REPLIES 0