Salesforce Fact #441 | Adding case team member using Apex
We can assign predefined case teams during case creation which we define in the Case assignment rule. But do you know we can add case team members or even a predefined case team using apex as well.
We have two objects related to Case Teams i.e. CaseTeamMember and CaseTeamTemplateRecord which we can use to add individual case team members or add a predefined case team to a Case. To add individual user in the case team, we can specify the parentId, MemberId and the TeamRoleId in the CaseTeamMember, while using CaseTeamTemplateRecord we specify only the ParentId and TeamTemplateId which adds the predefined case team to the case which in turn adds the members who are present in the predefined case team.
Attached is the screenshot.
Comments
Post a Comment