+ Start a Discussion
Anupam Bansal (Capgemini)Anupam Bansal (Capgemini) 

DataCategoryName Field not visible in Apex Class

Hi,

I am facing a strange issue. When I try to use the query "SELECT id,DataCategoryName FROM Community" in an Apex Class, it fails compilation with error - The field DataCategoryname is not found on Community object, However, when I run the same query in Dev console, it runs fine and brings back the results.Please help

Thanks
Anupam Bansal