SAP Knowledge Base Article - Public

3568893 - Category Name Not Available In Case API Response

Symptom

Category Name is not available in GET API response of a Case, even though Category details are maintained in the system.

Environment

SAP Sales Cloud and SAP Service Cloud Version 2

Reproducing the Issue

  1. Go to Cases Workcenter.
  2. Open a Case 123 in detail view (where 123 is the Display ID of the Case).
  3. Notice that there is category assigned to this case.
  4. Now go to Postman or Insomnia.
  5. Perform a GET call as https://<Tenant_URL>/sap/c4c/api/v1/case-service/cases/<id> to get the details of Case Display ID 123.
  6. Notice that in the response, the Category does not include 'Name' field.

Cause

Name is a language dependent field. So, in the system if category name is maintained in one language (e.g Dutch), but the API Call is made in default language, i.e. English, then the Category name field will not show up, as in the system the names are not maintained for English login.

Resolution

In order to resolve the issue, user can perform either of the below steps:

  1. Ensure that the category names are maintained in English login language as well, OR
  2. Ensure that the language is passed while making the API Call. For this, in the request payload, add the following header - 'Accept-Language'. The value for this should be the ISO defined language code. For example, for Dutch language, the code will be 'nl'.

Keywords

API, Category, Category Name, Case, Response, Payload, Header, Empty, Blank, Login language, Service , KBA , CEC-CRM-SCA , Service Catalog for SAP Sales/Service Cloud , CEC-CRM-CAS , Case Management for SAP Sales/Service Cloud , Problem

Product

SAP Sales Cloud and SAP Service Cloud Version 2 all versions