Working with cases
Case Types
All cases in CXM are scoped to a CaseType
. In order to perform some case operations you will need to tell CXM which CaseType
your operation relates to.
You can easily get a list of available Case Types for the currently authenticated user:
<?php
/** @var \Jadu\Quantum\ServiceApiClient\Manager\CaseTypeManager $caseTypeManager */
$caseTypeManager = $container->get('quantum_service_api_client.manager.case_type');
$caseTypes = $caseTypeManager->getAllForCurrentUser();
foreach ($caseTypes as $caseType) {
print $caseType->getName() . PHP_EOL;
}