FormulaRecalcResult Class
The return type of the Formula.recalculateFormulas method.
Indicates the result and status of recalculating formulas on a single sObject. Holds a reference to the sObject and a list of all the fields that were recalculated.
This example assumes that you have a formula field called divide__c with formula “1 / LEN(Name).
The following are methods for FormulaRecalcResult.
-
If an error occurs during formula recalculation, an array of one or more database error objects, along with error codes and descriptions, is returned.
-
Returns the sObject with formulas recalculated.
-
Returns a Boolean value that is set to
trueif the formula recalculation process completed successfully; otherwise, it is set tofalse.
If an error occurs during formula recalculation, an array of one or more database error objects, along with error codes and descriptions, is returned.
public List<System.FormulaRecalcFieldError> getErrors()
Type: List<FormulaRecalcFieldError Class>
Returns the sObject with formulas recalculated.
public SObject getSObject()
Type: SObject
Returns a Boolean value that is set to true if the formula recalculation process completed successfully; otherwise, it is set to false.
public Boolean isSuccess()
Type: Boolean