Posted 14 March 2022, 3:51 pm EST - Updated 3 October 2022, 9:23 am EST
We run the GC.Spread.Sheets.CalcEngine.evaluateFormula(sheet, formula) function to evaluate formulas entered by the user and provide user friendly messages, however in the case of the function GETPIVOTDATA the evaluateFormula function returns an invalid ref error (#REF!) even though the parameters for the function were entered correctly.
I believe this is due to the fact that the context provided to the function is the sheet. What would be the proper context to get the correct output from evaluateformula when the user input the GETPIVOTDATA function?

