External system requesting catalog items via API call

Ben Lageson
Tera Contributor

Another team in my organization would like to order catalog items from a link within their system via and API call to ServiceNow.  We (the ServiceNow administrator team) would like to provide validation that checks the body of the api call making sure that all required variables are provided before creating records in the system. 

 
what is a best practice for creating records in the system through APIs?  Are we being overly protective to write a Scripted REST Api for each catalog item that they will be ordering?  Or is it acceptable to trust them to fill out all of the needed variables and point them toward one of the existing APIs to do this work ?  If there is an existing API to do this work, which one is the best choice? 

1 REPLY 1

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Ben Lageson 

 

what is a best practice for creating records in the system through APIs? 

Atul: Added few links to read.

 

Are we being overly protective to write a Scripted REST Api for each catalog item that they will be ordering? 

Or is it acceptable to trust them to fill out all of the needed variables and point them toward one of the existing APIs to do this work ? 

 

If there is an existing API to do this work, which one is the best choice?

Atul: https://developer.servicenow.com/dev.do#!/reference/api/yokohama/rest/ 

AGLearnNGrow_0-1741901172184.png

 

 

https://www.servicenow.com/community/developer-articles/my-experience-with-scripted-rest-apis-and-so...

 

https://www.servicenow.com/community/developer-blog/servicenow-things-to-know-60-avoid-using-table-a...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************