Activity Forums Salesforce® Discussions Salesforce Trigger order of execution

  • Aman

    Member
    August 11, 2017 at 7:25 am

    Hello Uday,

    you can try this :

    trigger Handler :

    public class triggerHandler {
    public static boolean fact=true;

    }

    trigger :

    trigger ContactUp on Contact (after insert,after update) {
    if(triggerHandler.fact==true ){
    triggerHandler.fact=false;
    List<Contact> li123=[select id from contact where id in :trigger.new];
    system.debug('####################');
    for(contact con :li123){
    con.description ='aaaaaaaaaaaaaaaa';
    }
    update li123;
    }
    }

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos