• jagadeesh deepu 3
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
trigger Opportunity_task on Opportunity (after update) {
    list<task> tasks=new list<task>();
     for(Opportunity o:trigger.new){
         if(o.name!=null && o.name!=trigger.newmap.get(o.Id).name){
             task t=new task();  
             t.Subject='call';
             t.Priority='high';  
            // t.What='opportunity';
            tasks.add(t);             
         }
            }
    insert tasks;
}