--- title: Retrieve Case Classifications using Apex slug: '3325' canonical_url: https://docs.coveo.com/en/3325/ collection: coveo-for-salesforce source_format: adoc --- # Retrieve Case Classifications using Apex [.version.c4sf.c4sf-edition.c4sf-enterprise] [Enterprise edition](https://docs.coveo.com/en/l2590456#salesforce) > **Available since** > > This feature was introduced in the October 2020 release of Coveo for Salesforce version [4.8](https://docs.coveo.com/en/3236#october-2020-release-v4-8). ## Prerequisite You must have a valid [Case Assist ID](https://docs.coveo.com/en/3315#retrieving-your-case-assist-id). ## Retrieving Case Classifications . In Salesforce, access the Developer Console. . Instantiate the `CaseAssistApiClient` as follows: ```javascript String caseAssistId = '00000000-0000-0000-0000-000000000000'; Boolean debug = false; CoveoV2.CaseAssistApiClient client = CoveoV2.CaseAssistApiClient.getClient(caseAssistId, debug); ``` > **Note** > > The `debug` parameter is optional. > It indicates whether to include an execution report for debugging purposes. > The default value is `false`. . Invoke the `getCaseClassifications` method to retrieve the case classifications. **Example** ```javascript Map classifications = client.getCaseClassifications(new Map { 'clientId' => '56f994be-320d-4c06-ab8e-f7c312d517ff', 'fields' => new Map { 'subject' => new Map {'value' => 'The case subject'}, 'description' => new Map {'value' => 'The case description'} } }); ``` The `getCaseClassifications` method takes a `Map` as an input. . Specify values for the following arguments: -- .. [`clientID`](https://docs.coveo.com/en/masb0234/) identifies a specific instance of a browser client and provides insights into the [events](https://docs.coveo.com/en/260/) performed by the user. .. `fields` represents the [fields](https://docs.coveo.com/en/200/) of the current case that are considered meaningful for providing relevant case classifications. The `subject` and `description` fields are used to retrieve matching case classifications. > **Notes** > > - More fields can be added to better suit the use case. > > - The field values should be read from the current case and passed as a `Map` with a `value` key. -- The result is a `Map`, which contains suggested values for the fields configured in the Case Classification configuration. **Example** ```javascript Map fields = (Map)classifications.get('fields'); ``` You're now ready to retrieve and use case classifications in your own application.