Favoriteshubham sengar (JanBask LLC) asked in #ApexAug 12, 2015, 1:04 PMtrigger problem 4To 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 answerSortSort by Most HelpfulSort by Most HelpfulSort by DateAccepted Answershubham sengar (JanBask LLC)Aug 12, 2015, 10:12 PMtrigger 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; } }}Write an answer...BoldItalicUnderlineStrikethroughBulleted ListNumbered ListAdd linkCode blockInsert imageAttach filesLink URLCancelSave0/9000Reply
Accepted Answershubham sengar (JanBask LLC)Aug 12, 2015, 10:12 PMtrigger 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; } }}