How to submit a record producer via rest api explorer

Harshit Jamwal1
Mega Guru

I have a standard change template created via record producer. I want to create the standard change via REST API explorer. Can anybody help me with this. It is real urgent.

1 ACCEPTED SOLUTION

Hi Harshit,

Adding to Pradeep's point with example and how to send the data.

Note: ensure you give your instance name and sys_id of record producer

HTTP Method: POST

Endpoint: https://instanceName.service-now.com/api/sn_sc/servicecatalog/items/fae4d9be4fd98c10fc11fa218110c7bd/submit_producer

Request Body: key-value json pair

key -> name of variable

value -> value you want to set for that variable

{"select_option":"Option 1","description":"my description from API"}

Screenshots:

find_real_file.png

find_real_file.png

find_real_file.png

Regards
Ankur

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

View solution in original post

14 REPLIES 14

Hi Harshit,

Adding to Pradeep's point with example and how to send the data.

Note: ensure you give your instance name and sys_id of record producer

HTTP Method: POST

Endpoint: https://instanceName.service-now.com/api/sn_sc/servicecatalog/items/fae4d9be4fd98c10fc11fa218110c7bd/submit_producer

Request Body: key-value json pair

key -> name of variable

value -> value you want to set for that variable

{"select_option":"Option 1","description":"my description from API"}

Screenshots:

find_real_file.png

find_real_file.png

find_real_file.png

Regards
Ankur

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

@Ankur Bawiskar 

I have tried to submit record producer in Rest API explorer , but getting error to fill mandatory variables . I have already added the variables and provided value in Request body.

Please suggest

find_real_file.png

find_real_file.png

@Ankur Bawiskar 

I am getting as below 

find_real_file.png

rick48
Tera Contributor

Hi Ankur,

Is there any way that we can skip the mandatory variables while submitting record producer using the API.

Thanks,

rick48
Tera Contributor

Found the solution.

Need to pass sysparm_no_validation=true