Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Error in CreateTicketJson in ServiceNow rest connection

Kirti14
New Contributor II
New Contributor II

Hi Team
I am using below json to create ticket in service now. I am getting response code as 200 but facing problem in fetching ticket id in saviynt. Below is the error I am facing. Kindly help me out.

{
"ticketidPath": "call2.message.result.request_number",
"showLogs" :"true",
"call": [
{
"name": "call1",
"connection": "ServiceNow",
"url": "https://xxxxx/api/now/table/sys_user?sysparm_query=email=xxx@gmail.com&sysparm_fields=sys_id",
"httpMethod": "GET",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
}
},
{
"name": "call2",
"connection": "ServiceNow",
"url": "https:/xxxxxxx/api/sn_sc/servicecatalog/items/abcd/order_now",
"httpMethod": "POST",
"httpParams": "{\"sysparm_quantity\":\"1\",\"variables\":{\"required_for\":\"${call1.message.result.sys_id}\",\"app_name\":\"Test Application\",\"access_profile_name\":\"Test access\",\"saviynt_reference\":\"001\"}}",
"httpHeaders": {
"Content-Type": "application/json",
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200,
201
]
}
}
]
}

 

 

 

 

Kirti14_0-1715858666471.png

Kirti14_1-1715858734831.png

 

 

 

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Please share curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ] and share screenshot where you are checking status of ticket


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Kirti14
New Contributor II
New Contributor II

Get method call:

Kirti14_0-1715938673306.png

post method call:

Kirti14_1-1715938743204.png

 

I have also shared the latest log :

Kirti14_2-1715938889994.png

 

 

 

Please share proper full postman screenshot with URL and body params

Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]


⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️

 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.