The following code inside Invoke code activity throws error ‘ActiveSheet’ is not declared . Pivot Tables and pivot field is declared. The Microsoft.Office.Interop.Excel package is installed.
ActiveSheet.PivotTables(“name”). PivotFields (“custno”).ShowDetail= True