getRelatedCases(caseID, context)
Obtains the related cases of a specific case.
Returns
A Promise.
Parameters
Name | Type | Description | Required |
caseID | string | The ID of the case whose related cases must be obtained. | ✅ |
context | string | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API obtains the related cases of a case whose ID is
W-102
.
PCore.getRelatedCasesApi().getRelatedCases('W-102', 'app/primary_1')
.then(relatedCases => {
// relatedCases array
}).catch(err => {
// errors
});
Previous topic addRelatedCases(caseID, relatedCases, context) Next topic removeRelatedCase(caseID, relatedCaseID, context)