Click HERE to see how Saviynt Intelligence is transforming the industry. |
10/28/2024 06:24 AM - last edited on 10/28/2024 07:21 AM by Dave
Now I am facing another issue regarding creating ticket number.
I use the following create ticket json
{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://test.com/api/v2/tickets",
"httpMethod": "POST",
"httpParams": "{\"subject\":\"Test Ticket from Saviynt\",\"description\":\"Testing ticket\",\"status\":2,\"priority\":3,\"source\":2,\"unique_external_id\":\"${user.username}\",\"email\":\"${user.email}\"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"ticketidPath": "ticket.id",
"successResponses": {
"statusCode": [
200,
201
]
}
}
]
}
getting error in the provisioning metadata
{"call1":{"message":"Unrecognized token 'Error': was expecting ('true', 'false' or 'null')\n at [Source: Error in getting Ticket Number. Response: {\"cc_emails\":[],\"fwd_emails\":[],\"reply_cc_emails\":[],\"ticket_cc_emails\":[],\"fr_escalated\":false,\"spam\":false,\"email_config_id\":1070000079255,\"group_id\":null,\"priority\":3,\"requester_id\":1070033705675,\"responder_id\":null,\"source\":2,\"company_id\":null,\"status\":2,\"subject\":\"Test Ticket from Saviynt\",\"support_email\":null,\"to_emails\":null,\"product_id\":1070000068914,\"id\":25,\"type\":null,\"due_by\":\"2024-10-29T15:20:03Z\",\"fr_due_by\":\"2024-10-28T16:20:03Z\",\"is_escalated\":false,\"description\":\"<div>Test Ticket from Saviynt</div>\",\"description_text\":\"Test Ticket from Saviynt\",\"custom_fields\":{\"cf_reference_number\":null},\"created_at\":\"2024-10-28T12:20:03Z\",\"updated_at\":\"2024-10-28T12:20:03Z\",\"tags\":[],\"attachments\":[],\"internal_agent_id\":null,\"internal_group_id\":null,\"form_id\":1070000215803,\"nr_due_by\":null,\"nr_escalated\":false}; line: 1, column: 6]","status":"Failed"}}
Please help regarding this issue.
Solved! Go to Solution.
10/28/2024 06:26 AM
Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]
⚠️ Reminder: Mask possible PII such as employee names, email addresses, phone numbers, IP addresses, account details, company-specific URLs, and client names before sharing.⚠️
10/28/2024 06:43 AM
curl --location 'https://test.com/api/v2/tickets' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic XXXXXXXXXXXXXXXXXX' \
--header 'Cookie: _x_m=x_c; _x_w=7_2' \
--data '{
"subject":"Test Ticket from Saviynt",
"description":"Test Ticket from Saviynt",
"status": 2,
"priority": 3,
"source": 2,
"unique_external_id": "testuser"
}
I am refering this Freshdesk documentation https://developers.freshdesk.com/api/#create_ticket
10/28/2024 06:52 AM
change below
"ticketidPath": "id",