Best way to handler trigger Recursive call — SFDC_WEB


IN controller after execution just make the boolean to true Trigger trigger RN_Account on Account (after update) { RN_AccountHandler handler = new RN_AccountHandler(); if(Trigger.isAfter && Trigger.isUpdate && RN_AccountHandler.isUpdate) { RN_AccountHandler.isUpdate = false; handler.onAfterUpdate(Trigger.newMap, Trigger.OldMap); } } Controller public with sharing class RN_AccountHandler { public static Boolean isUpdate = true; public void onAfterUpdate(map mapNewAccount, map

via Best way to handler trigger Recursive call — SFDC_WEB

Advertisements