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

Best Practice for Achieving Business Reqs

Hi All,


I have requirement whereby I would like to automatically change the status of my Case (Case Object) when assigning the Case to a Queue or User.  For example when Customer Services assign a Case to the Pricing Department (queue) then I would like the status of the Case to automatically change to "Waiting for Pricing".


And so I would like to know please the best method for achieving this requirement  for example, do i use triggers, workflows etc


Any help/advise would be greatly appreciated.


Thank You.


You can use workflow or triggers.


Advantage for workflow : Point and click, no code

Disadvantage for workflow : You would have to create one workflow each for every queue or case owner assignment or status.


Advantage for trigger : easier to maintain in this case as one trigger will do everything.

Disadvantage for trigger : you have to write code.


Best Regards,