This file contains 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
//util class | |
public class util_triggerKillswitch { | |
public static Boolean shouldRun(String sobjectAPIName) { | |
for (Trigger_to_Skip__c t : Trigger_to_Skip__c.getall().values()) { | |
if (t.Sobject_API_Name__c.equalsIgnoreCase(sobjectAPIName)) { | |
return false; | |
} | |
} | |
return true; |
This file contains 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
trigger TRG_OpptyTeamMemberName on OpportunityTeamMember (before insert, before update) | |
{ | |
Set<Id> setTeamMemberID = new Set<Id>(); | |
for (OpportunityTeamMember otm: Trigger.new) | |
{ | |
setTeamMemberID.add(otm.UserId); | |
} | |
Map<Id, User> usrMap = new Map<Id, User>([SELECT Id, Name, LastName FROM User WHERE Id IN :setTeamMemberId]); | |
This file contains 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
// add these properties to the RollupSummaryField class. | |
public boolean isMasterTypeCheckbox; | |
public boolean isDetailTypeCheckbox; | |
// add these to LREngine RollupSummaryField class constructor (starts at line 420) | |
this.isMasterTypeCheckbox = isCheckbox(master.getType()); | |
this.isDetailTypeCheckbox = isCheckbox(detail.getType()); | |
// Add this anywhere inside RollupSummaryField inner class | |
boolean isCheckbox (Schema.Displaytype dt) { |