Click HERE to see how Saviynt Intelligence is transforming the industry. |
12/13/2023 03:24 PM - last edited on 12/13/2023 03:33 PM by Dave
12/13/2023 03:37 PM
ticketidPath Is missing in json
refer sample json https://docs.saviyntcloud.com/bundle/ServiceNow-v23x/page/Content/ServiceNow-as-a-Ticketing-System.h...
12/13/2023 04:00 PM
Yes, I tried the correct path and still got the same error.
postman response:
create ticket json
{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://servicedeskxxxxx",
"httpMethod": "POST",
"httpParams": "{\"shortDescription\": \"saviyant testing new 20\",\"description\": \"Testingnew20\", \"application\": \"WMP\",\"userUID\": \"1006xxxx\"}",
"httpHeaders": {
"Authorization": "Bearer eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYXBpX1Nhdml5bnQiLCJjbGllbnRfaWQiOiI5ZTJlYjdiOC0xOWMyLTRiM2ItOTYxMi02YzQyNDFkOTY0ZmUiLCJpZGVudCI6IntcImFwcGxpY2F0aW9uX3R5cGVcIjpcIkJyb3dzZXJDbGllbnRcIixcImF1dGhlbnRpY2F0aW9uX3R5cGVcIjpcIlRyZWJ1Y2hldFwiLFwidXNlcl9pZFwiOlwiYXBpX1Nhdml5bnRcIixcInNlY19ncnBcIjpcIjkzMzczNDAyZGE1OTYzNWJhOWU2MTY0Y2Y4OTM2NDc3NGEzYTJiZWJiMVwiLFwicGVyc29uYVwiOlwiOTM2NWE0NTJjNzBkNjlhNTcyNGJiMDQ2NTQ5ZTQ2NDg0ODNiODVmZGZjXCIsXCJ0b2tlblwiOm51bGwsXCJkZWZfdHlwZV9pZFwiOlwiOTMzODIxNmIzYzU0OWI3NTYwN2NmNTQ2NjdhNGU2N2QxZjY0NGQ5Zm"
},
"httpContentType": "application/json",
"ticketidPath": "busObPublicId",
"successResponses": {
"statusCode": [
200,
201
]
}
}
]
}
12/13/2023 04:10 PM
What is connection name both json i see different name
is it userAuth /accAuth
12/13/2023 11:32 PM - edited 12/14/2023 03:55 AM
@Ash_saviynt1 1.Please check the connection you have entered different name in CreateTicketJSON.
"connection": "acctAuth",
"connection": "userAuth",
2.
"httpHeaders": {
"Authorization": "${access_token}"
},
12/14/2023 03:03 AM
@Ash_saviynt1 - There seems to be a problem in your createTicketJSON:
This is the right usage: "Authorization": "${access_token}",
But looks like you are using "Authorization": "${accessToken}"
Please validate your JSON formation.