Dynamically Determine Calling Context
Biswajeet
November 12, 2017 No Comments on Dynamically Determine Calling Context
Batch - System.isBatch() @future - System.isFuture() Queueable - System.isQueueable() Schedulable - System.isScheduled() Trigger - Trigger.isExecuting
Visualforce - ApexPages.currentPage() != null Apex REST - RestContext.request != null