You need to sign in to do that
Don't have an account?
CharlieLang
Apex trigger
I am currently trying to create a case comment when a task is added to a case.
I currently have the following trigger
trigger CMCreateCase on Task (after insert) { CaseComment cc = new CaseComment(CommentBody='Test',parentID=caseId); insert cc; }
How do i find the case ID in the task record
Modify your trigger as below:
Let me know if this works.
Regards,
Lakshman