Skip to main content The Trailblazer Community will be unavailable from 2/1/2025 to 2/2/2025. Please plan your activities accordingly.
To update the owner of a case based on the values selected with in a picklist and papulate the owner field with the creaded by the field data when we have seleted any field name = status..?? 
1 answer
  1. Aug 12, 2015, 10:12 PM
    trigger CaseTrigger on Case(before update) 

    {

       for(Case c:Trigger.new)

       {

           if(c.Status == 'Priced â€“ (Initial)' || c.Status == 'Priced â€“ (Re-Priced)' || c.Status == 'Price File Loaded')

          {

               c.OwnerId = c.CreatedById;

           }  

       }

    }
0/9000