function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Workflow/Trigger on Case to create a Casecomment

A casecomment should be created based upon the status on the Case.  I've tried to do with workflow - field update but I don't see any fields related to the CaseComment.  Can this be done through workflow/trigger?

SFDC Dev 2233SFDC Dev 2233
You can do it with a help of a trigger.
Mahesh DMahesh D
Hi Ramshah,

We can't use Workflow as we have only 4 standard actions under the Workflow. i.e
(1) Task Creation
(2) Field Update
(3) Email Alert
(4) Outbound Message

You have to write the Trigger. It should be after trigger as you are creating a record of other object, it should be written in the after trigger.

Please do let me know if this helps.

Thanks Mahesh and SFDC Dev 2233