createParticipant(caseID, participantRoleID, participantData, c11nEnv)
Creates a new participant for a case.
Returns
A Promise that resolves to an object.
Parameters
Name | Type | Description | Required |
caseID | string | The ID of the case to which the new participant must be linked. | ✅ |
participantRoleID | string | The string containing the new participant data. | ✅ |
participantData | object | The data object containing the details of the participant. | ✅ |
c11nEnv | object | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API creates a new participant of a case whose ID is
W-102
.
PCore.getStakeholderUtils().createParticipant('W-102', participantData, 'app/primary_1')
.then(newParticipantData => {
// newParticipantData
}).catch(err => {
// errors
});
Previous topic APIs in the StakeholderUtils module Next topic deleteParticipant(caseID, participantID, c11nEnv)