Restrict the CI entry Creation in CMDB table, If CI not found

SowmyaS99338320
Tera Contributor

Hi Team,
We have integrated Service now with one of the automation tool, during incident creation through automation when the CI is not found in CMDB table it currently creates the new CI record in the CMDB table , We need to build a solution that Service now should not create a New CI record , instead the Configuration item field should be empty if CI not found in CMDB table.
For this integration Client have used Direct table Api integration , We have to restrict the CI entry Creation through Business rule

can someone assist me with the script logic?

3 REPLIES 3

Shivalika
Mega Sage

Hello @SowmyaS99338320 

 

Where is this table API configured in your instance ? It should be scripted rest api. There you can add a check if ci is not found then leave it empty and insert. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

 

SowmyaS99338320
Tera Contributor

Scripted Api we have not created, Automation tool directly inserting record to our incident table 

Hello @SowmyaS99338320  

 

How can they directly insert it, what are they using ? Import Set table APi ? Nothing from outside can be directly inserted, there needs to be something in the system to allow that. 

If you are not aware about this, are you knowing if there is any point of difference - that helps identity that this incident is being created by automation - any particular field value ?


Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY