Skip to main content
답변 19개
  1. 2018년 5월 21일 오전 6:24
    Hi Shiv,

    Your trigger should look something like this:

     

    trigger CloneOpp on Opportunity (after update){

    Custom_Object__c[] ls=new Custom_Object__c[]{};

    for(Opportunity o: trigger.new){

    Custom_Object__c obj=new Custom_Object__c();

    //Assign whichever values you want to clone to the fields of your custom object, for example:

    //obj.name=o.name;

    ls.add(obj);

    }

    insert ls;

    }

    Let me know if it helps.

    Thanks!
로딩 중
0/9000