getParticipantRoles(caseID, c11nEnv)
Obtains the list of participant roles for a case.
Returns
A Promise that resolves to an object.
Parameters
Name | Type | Description | Required |
caseID | string | The ID of the case whose list of participant roles must be obtained. | ✅ |
c11nEnv | object | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API obtains the list of participant roles of a case whose ID is
W-102
.
PCore.getStakeholderUtils().getParticipantRoles('W-102', 'app/primary_1')
.then(roles => {
// roles array
}).catch(err => {
// errors
});
Previous topic getParticipant(caseID, participantID, c11nEnv) Next topic getParticipants(caseID, c11nEnv)