How to create Request Item (RITM) from Service Catalog item using REST API?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2022 05:31 AM
We have a service catalog item where people can request resizing of SQL servers, and I have been asked to find a way to raise these via PowerShell & REST API.
I can create incidents and requests, but I can't figure out how to create Request Items (RITMs), which would then automatically create the Request and Task items created when manually filling out the Service Catalog form.
I haven't been able to find any documentation that has been helpful in figuring this out.
Do I need to Post to a specific url? Or should "$ServiceNowInstance/api/now/table/sys_db_object" suffice?
Do I refer to the Catalog Item's sys_id in the request body? If so, what should the format be?
Thanks for any help in advance 🙂
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2022 05:37 AM
Hi
Follow this thread:
https://community.servicenow.com/community?id=community_question&sys_id=b69f9dc3db6f6410f77799ead39619d4
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2022 06:59 AM
Thanks, that post wasn't particularly helpful, but at least it seems to confirm that I need to use the sys id.
You'd think a company like ServiceNow would have useful documentation for this sort of thing...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2022 05:39 AM
There is a Service Catalog REST API for this purpose. It is pretty straight forward. See the below docs:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2022 06:39 AM
Thanks, but I don't really see anything there that would help me create a Request Item via REST API.