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

How to solve the "Error in Ticket Number: Response null" while generating a ticket in freshdesk?

AnirudhBisen
New Contributor
New Contributor

Hello,

I have been trying to create a ticket in Freshdesk via Saviynt. while doing so I encountered the following error: "Error in Ticket Number: Response null". I have attached a screenshot of the error as well.

I am able to create a ticket in freshdesk via postman using the same fields which I used in saviynt.

These are the JSON i am using for this process:

Connection JSON:

{
"authentications": {
"acctAuth": {
"authType": "basic",
"credentials":{
"username":"XXXXXXXXXXX",
"password":"abcd1234"
}
"httpHeaders": {
"contentType": "application/json"
},
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed"
],
"url": "<Freshdesktenant.freshdesk.com/api/v2/tickets>",
"httpMethod": "GET",
"httpContentType": "application/json",
"errorPath": "error.code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"authHeaderName": "Authorization",
"accessToken": "Bearer XXXXXXXXXXX",
"httpParams": "{}",
"retryFailureStatusCode": []
}
}
}

Create ticket JSON:

{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "<freshdesktenant.freshdesk.com/api/v2/tickets>",
"httpMethod": "POST",
"httpParams": "{\"subject\":\"Test Ticket from Saviynt\",\"description\":\"Test Ticket from Saviynt\",\"status\":2,\"priority\":3,\"source\":2,\"unique_external_id\":\"100001\"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/json",
"ticketidPath": "ticket.id",
"successResponses": {
"statusCode": [
200,
201
]
}
}
]
}

1 REPLY 1

rushikeshvartak
All-Star
All-Star
  • Please share the logs in text format for easier debugging. Additionally, provide the task ID, error details, or specific line numbers where the issues occur to help us review the relevant sections efficiently.



    ⚠️ Important: Do not upload attachments containing sensitive information, such as IP addresses, URLs, company/employee names, or email addresses. For more information, refer to the Saviynt PII Policy.
  • It seems you connection json having wrong API ( Please share postman screenshot of authentication)

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