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
public static void checkForOrderItemInfo(List<System_Order_Item_Info__c> orderItemInfos) | |
{ | |
Set<Id> orderItemSet = new Set<Id>(); | |
List<OrderItem> orderItems = new List<OrderItem>(); | |
List<System_Order_Item_Info__c> allOrderItemInfos = new List<System_Order_Item_Info__c>(); | |
Map<Id,Id> mapOrderItemToOrderItemInfo = new Map<Id,Id>(); | |
List<OrderItem> orderItemsToUpdate = new List<OrderItem>(); | |
// Extract all the parent order items for the order item infos being inserted or deleted | |
for(System_Order_Item_Info__c orderItemInfo : orderItemInfos) |
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 myObjectTrigger on myObject (before insert, before update, before delete, | |
after insert, after update, after delete, after undelete) | |
{ | |
// Check if the triggers should be executed for the current user | |
if (Run_Logic__c.getInstance(System.UserInfo.getUserId()).Run_Triggers__c) | |
{ | |
/* my trigger logic */ | |
} | |
} |
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
'*** PUBLIC VARIABLES *** | |
Public logger as DJRowSet | |
'*** Add log message to reusable rowset and output to pervasive log *** | |
Public Function logmsg(msg) | |
IF logger Is Nothing THEN | |
Set logger = New DJRowSet | |
END IF | |
logger.append(msg) |
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
public class ABCService { | |
@future(callout=true) | |
public static void addJobApplicationFuture() { | |
addJobApplication(); | |
} | |
public static void addJobApplication() { | |
// Instantiate a new HTTP request | |
HttpRequest req = new HttpRequest(); |