This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ManageLeadTerritoryController { | |
@TestVisible private static String SCHEDULED_JOB_NAME = 'Mass Update Leads'; | |
@RemoteAction | |
public static void massUpdateNow() | |
{ | |
List<Territory_Setup__c> LeadTerrSetups = [select Id, Next_Mass_Update_Date_Lead__c, Status__c from Territory_Setup__c | |
order by lastmodifieddate desc limit 1]; | |
if(LeadTerrSetups.size() > 0 && LeadTerrSetups[0].STatus__c == 'on') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ServiceRequestTrigger { | |
private final Map<Id, Service_Request__c> oldMap; | |
private final Map<Id, Service_Request__c> newMap; | |
private final List<Service_Request__c> newObjs; | |
private final Boolean isInsert; | |
private final Boolean isUpdate; | |
private final Boolean isDelete; | |
private final Boolean isBulk; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ServiceRequestTrigger { | |
private final Map<Id, Service_Request__c> oldMap; | |
private final Map<Id, Service_Request__c> newMap; | |
private final List<Service_Request__c> newObjs; | |
private final Boolean isInsert; | |
private final Boolean isUpdate; | |
private final Boolean isDelete; | |
private final Boolean isBulk; | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class OrderTrigger { | |
private final Map<Id, Order__c> oldMap; | |
private final Map<Id, Order__c> newMap; | |
private final List<Order__c> newObjs; | |
private final Boolean isInsert; | |
private final Boolean isUpdate; | |
private final Boolean isDelete; | |
private final Boolean isBulk; | |
/** |