External system requesting catalog items via API call
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 01:59 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2025 02:26 PM
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/
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]
****************************************************************************************************************