CalcAllSave
You can use this function for Optiva workflows.
Purpose
Executes a Calc All function against the current formula and its subformulas. This function will save the results. All subformulas are saved upon calculation. This function returns an integer value of 0 on completion and pushes errors into the message list.
Note: If the user executing a workflow with this function does not have Edit permission to subformulas, those subformulas will not be modified. This is consistent with the Calc All/Save All tree functionality on the formula.
Syntax
Dim variable As Long = CalcAllSave(formulaCode)
Example
You can call this function against a formula either on its own or at the end of an update to a formula, particularly to values in the Item Lines. This is an example executed from a formula in a Workflow script:
Function wf_start() As Long
Dim variable As Long = CalcAllSave(_OBJECTKEY)
End Function