Unable to create ticket in HR Help Desk Using REST API
We are trying to create a ticket in HR help desk using REST API with below payload but we getting Error as "The value of the attribute Category isn't valid". Even we have checked in tables as well and the category code is correct but still getting error. As per the business Requirement the category field is mandatory so based on the category ticket would be routed to the respective group.
URL
/crmRestApi/resources/11.13.18.05/serviceRequests
Payload
{
"Title": "Absence Issue",
"ProblemDescription": "Please help me with this Issue",
"CategoryCode": "HOW_TO_APPLY_LEAVE"
}
Query to get category
select distinct CATEGORY_NAME, CATEGORY_ID, parent_category_id,CATEGORY_CODE,CATEGORY_SHORT_NAME,ENABLED_FLAG from SVC_CATEGORIES