removeRelatedCase(caseID, relatedCaseID, context)
Removes a related case from its relationship with a specific case.
Returns
A Promise.
Parameters
Name | Type | Description | Required |
caseID | string | The ID of the case from whose relationship the related case must be removed. | ✅ |
relatedCaseID | string | The ID of the case that is removed from the relationship. | ✅ |
context | string | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API removes the case whose ID is T-200
from its
relationship with the case whose ID is W-102
.
PCore.getRelatedCasesApi().removeRelatedCase('W-102', 'T-200', 'app/primary_1')
.then(() => {
// success
}).catch(err => {
// errors
});
Previous topic getRelatedCases(caseID, context) Next topic APIs in the RestClient module