async function fetchTicketsFromDesk(timeFilter = 'current_month') {
try {
const response = await ZOHO.CRM.CONNECTION.invoke("desk_connection", {
url: "/api/v1/tickets",
method: "GET",
});
const data = response.details ? JSON.parse(response.details) : null;
return data && data.data ? data.data : [];
} catch (error) {
console.error("Error fetching tickets:", error);
return [];
}
}
i am getting 400 error with
{
"code": "PATTERN_NOT_MATCHED",
"details": {
"api_name": "url"
},
"message": "Please check whether the input values are correct",
"status": "error"
}
and when i use relative url "/api/v1/tickets"
it gives
{
"code": "SUCCESS",
"details": {
"statusMessage": {
"errorCode": "UNPROCESSABLE_ENTITY",
"message": "Extra query parameter 'Authorization' is present in the input."
},
"status": "true"
},
"message": "Connection invoked successfully",
"status": "success"
}
I have configured the connections properly but still facing this issue. (Used Custom Service for connection)