The CreatorCon Call for Content is officially open! Get started here.

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

Panzerbjrn
Kilo Contributor

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 🙂

5 REPLIES 5

Community Alums
Not applicable

Hi @Panzerbjrn ,

Follow this thread:

https://community.servicenow.com/community?id=community_question&sys_id=b69f9dc3db6f6410f77799ead39619d4

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

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...

Ravi Peddineni
Kilo Sage

@Panzerbjrn 

There is a Service Catalog REST API for this purpose. It is pretty straight forward. See the below docs:

https://docs.servicenow.com/bundle/sandiego-application-development/page/integrate/inbound-rest/conc...

Thanks, but I don't really see anything there that would help me create a Request Item via REST API.