getParticipant(caseID, participantID, c11nEnv)
Obtains the data of a participant linked to a case.
Returns
A Promise that resolves to an object.
Parameters
Name | Type | Description | Required |
caseID | string | The ID of the case that the participant is linked to. | ✅ |
participantID | string | The ID of the participant whose data 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 data of the participant with participant ID
123
, linked to a case whose ID is W-102
.
PCore.getStakeholderUtils().getParticipant('W-102','123', 'app/primary_1')
.then(participantData => {
// participantData
}).catch(err => {
// errors
});
Previous topic deleteParticipant(caseID, participantID, c11nEnv) Next topic getParticipantRoles(caseID, c11nEnv)