Skip to main content 3 月 5 日~ 6 日にサンフランシスコで開催される TDX に会場で、または Salesforce+ から参加して、Agentforce で未来を築きましょう。今すぐ申し込む
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 件の回答
  1. 2015年8月12日 22:12
    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