1 resposta
Hi Sandy,You're getting errors because you didn't define the variable currentFiscalYear above, you have directly used it.This should be like this -String currentFiscalYear = [SELECT FiscalYearSettings.Name FROM Period WHERE Type = 'Year' AND StartDate <= TODAY AND EndDate >= TODAY].FiscalYearSettings.Name;Please mark it as the best answer, if it helps in any way.Thanks.