Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Rest API in creating REQ and RITM in ServiceNow

MaiangC
Giga Contributor

Hello SNOW Experts!

 
I am trying to create REQ and RITM tickets using Rest API. Apologies, I am new to this and not really sure if I'm doing it correctly. I have followed the steps to take from documentations I have gone through to no avail. Here are the steps that I have taken so far:

 

1. Used the sn_sc namespace with Buy Item ( POST ). 

2.  Created the request body containing the mandatory fields. 

 

img1: Form fields

MaiangC_1-1715826184606.png

img2: Request Body 

MaiangC_2-1715828800895.png

 

Despite filling in all mandatory fields, the response returns 400 Bad Request, saying mandatory fields should be filled in. 

MaiangC_3-1715829284788.png

 

There are differences also that I have found in the but not sure if it weighs in. 


IMG4: catalog item does not have the Order Now option but rather it's showing Apply Now.

MaiangC_1-1715826184606.png

img5: Mandatory variables are indicated in the Variables Sets tab instead on the Variables Tab. 

MaiangC_4-1715830645385.png

 

Would appreciate your expert advice on this issue please. 

 

Thank you! 

 

0 REPLIES 0