addCaseFollower(caseID, userID, context)
Adds a user as a follower to a case.
Returns
A Promise that adds a user as a follower to a case.
Parameters
Name | Type | Description | Required |
caseID | string | The ID of the case to which the user must be added as a follower. | ✅ |
userID | string | The ID of the user to be added as a follower to a case. | ✅ |
context | string | The name of the context where the API is being called. | ✅ |
Usage example
In this example, the API adds a user whose ID is user-1
as a
follower to the case whose ID is W-102
.
PCore.getCaseFollowerApi().addCaseFollower('W-102', 'user-1' , 'app/primary_1')
.then(() => {
// success
}).catch(err => {
// Error handling
});
Previous topic APIs in the CaseFollowerApi module Next topic deleteCaseFollower(caseID, followerID, context)