The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Creating request (REQ) - Python REST API

shynee
Giga Contributor

Hello SNOW Gurus,

I am using REST API to create incident tickets, modifying CI's successfully. But Now I have a need to create a request. I don't understand the process on how to accomplish this. I need to select the service from "service catalog", then create a request(REQ), and a request item (RTIM).  It seems updating mutiple tables (sc_request and sc_req_item). Any idea how can this be done ?  Any sample code or documentation will be really helpful.

TIA

Shynee

1 ACCEPTED SOLUTION

sachin_namjoshi
Kilo Patron
Kilo Patron

you need to use OOB service catalog REST API to create service request.

Please check below documentation

 

https://docs.servicenow.com/bundle/jakarta-application-development/page/integrate/inbound-rest/concept/c_ServiceCatalogAPI.html

 

Regards,

Sachin

View solution in original post

9 REPLIES 9

Do you mind to mark my answer as correct so that others can benefit from similar question?

 

Regards,

Sachin

shynee
Giga Contributor

I will if I don't have any follow up questions.

Thanks

Shynee

shynee
Giga Contributor

Sachin,

Which API I should be looking in the API explorer to accomplish creating a request ?

Thanks

Shynee

shynee
Giga Contributor

Never mind, I had to change the namespace to sn_sc. I see all the API's

 

Thanks

 

Shynee

amu
Tera Contributor

Can someone explain what is the use of these below parameters in the payload

 

sysparm_item_guid":"d9bcc9bc1b4e94108dbf42eddc4bcbd2","get_portal_messages":"true","sysparm_no_validation":"true"