Create REQ, RITM and TASK via API

sreeramnanda
Kilo Contributor

Hi,

 

We have a catalog integration and SDIM integration with SailPoint IdentityNow.

 

I am new to servicenow, I am trying to create an REQ under which an RITM and its associated task all in one go API call, is that possible? When I hit the endpoint /now/table/sc_request an REQ is created however no RITM is created with it.

 

When I hit /now/table/sc_req_item an RITM is created without an REQ (no association that I could find) 

 

I understand SC task is optional and not required under all RITM. However my requirement is to create a RITM with associated sc task all under one REQ. 

 

Kindly assist, any direction is appreciated 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@sreeramnanda 

why to consume 2 endpoints?

Ask the 3rd party to use either Scripted REST API and they can share all the details to you and within scripted rest api you can use Cart API to create REQ and RITM

Scripted Rest API: Create RITM and SCTASK 

OR

Ask 3rd party to consume the Service Catalog API, check these links on how they can use that API

Submit catalog request using Service catalog API 

How to submit a catalog item using REST API 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader