Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Error creating ticket number

AnirudhBisen
New Contributor II
New Contributor II

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.

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

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.⚠️


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

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"

}

AnirudhBisen_0-1730122723543.pngAnirudhBisen_1-1730122807679.pngAnirudhBisen_2-1730122905731.png

I am refering this Freshdesk documentation https://developers.freshdesk.com/api/#create_ticket

change below

"ticketidPath": "id",


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.