UTIL_FormulaFilter.INT_SObjectFormulaEvaluationContext
Class
global interface UTIL_FormulaFilter.INT_SObjectFormulaEvaluationContextKnown Derived Types: UTIL_FormulaContext.AccountContext, UTIL_FormulaContext.CampaignContext, UTIL_FormulaContext.CaseContext, UTIL_FormulaContext.ContactContext, UTIL_FormulaContext.EventContext, UTIL_FormulaContext.FoobarContext, UTIL_FormulaContext.LeadContext, UTIL_FormulaContext.OpportunityContext, UTIL_FormulaContext.TaskContext, UTIL_FormulaContext.UserContext
Interface for providing context data to dynamic formula evaluations using Salesforce's FormulaEval namespace. Implementing classes supply the necessary context for evaluating formulas using SObjects.
Since: 1.0
Methods
| Method | Description |
|---|---|
| global abstract void setContext(SObject oldRecord, SObject newRecord) | Sets the context for formula evaluation by providing the current and previous states of the SObject record being processed. |
Method Details
setContext
global abstract void setContext(SObject oldRecord, SObject newRecord)Sets the context for formula evaluation by providing the current and previous states of the SObject record being processed. This method is invoked during trigger execution to supply the formula with relevant data for evaluation.
Parameters:
oldRecord(SObject) - The state of the record before the DML operation.newRecord(SObject) - The state of the record after the DML operation.
Since: 1.0