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.

API created Request and need to set variables on the form.

clyon
Tera Guru

Hi, I'm using the following order_now API to create a Request. How can I specify the values of the Requested_for, Opened_by, Description fields via the API call. The workflow associated creates the RITM and Task and the values I set on the Request I need to have populated on the RIMT and Task as well.

 

https://xxxxx.service-now.com/api/sn_sc/servicecatalog/items/022390031b013380c0b8dd7edd4bcb17/order_now

Request Body:

{\"sysparm_quantity\":\"1\",\"requested_for\":\"5851485337cc02001108a9c2b3990ed1\",\"opened_by\":\"bf6f4a1e1b69bb00c0b8dd7edd4bcb24\",\"requestor\":\"5851485337cc02001108a9c2b3990ed1\",\"short_description\":\"Vending Machine Purchase\"}";

 

TIA

 

6 REPLIES 6

Hi,

Have you maybe found a solution for this?

Cheers,

Tamás

Tam_s Holics
Tera Contributor

Dear Christina,

 

Have you maybe found a solution for this? I have the same requirement.

 

Best regards,

Tamás