Create Request/RITM via API

CA5
Tera Contributor

@Ankur Bawiskar  Could you please provide me step by step instructions to create Request/RITM in servicenow Instance via Rest API from third party tool.

Note: First, request form will be submitting on third party tool and it should create a request in servicenow instance with same form data [payload will be provided to insert or create request in servicenow instance].

How can we achieve this requirement?

Link

18 REPLIES 18

Geoff_T
Mega Sage

Hello,

I provided some details on this here:

https://community.servicenow.com/community?id=community_question&sys_id=db13ae501b8b6850ed6c9979b04bcb7b

Please let me know if it helps.

 

Geoff

CA5
Tera Contributor

Hello Geoff,

 

Can you please share step by step instructions to fulfill this. 

 

Thanks!

John Zhang1
Kilo Patron
Kilo Patron

You can REST API Explorer to define REST request record creation by following configuration:

 

find_real_file.png

find_real_file.png

Mark Correct if this solves your issue and also mark ???? Helpful if you find my response worthy based on the impact.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can use Cart API and tell 3rd party to consume it with specific request format

refer below link where I have shared the solution

How to order Catalog Items from REST API Explorer?

sharing the steps again here

1) from left nav open REST API Explorer

2) from namespace select -> sn_sc

3) select buy item API

4) give sys_id of the catalog item

5) give body as RAW JSON; ensure you give your variable names; I have given group with value as group sys_id

{
        'sysparm_id': 'a96250e407d01410540bf2508c1ed014',
        'sysparm_quantity': '1',
        'variables':{
        'test': 'hello',
        'group': 'd625dccec0a8016700a222a0f7900d06'
        }

}

Buy Item (POST) -> give sys_id of the catalog item in the URL

https://instanceName.service-now.com/api/sn_sc/servicecatalog/items/a96250e407d01410540bf2508c1ed014/order_now

Request Body: highlighted in bold is sys_id of catalog item

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