function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tejender Mohan 9Tejender Mohan 9 

Can not access folder's DeveloperName on Merge Field.

Hi,
While saving the below code, Following Error Occurs: "Variable does not exist: DeveloperName"
 
List<Dashboard> listAllDashboards = [SELECT DeveloperName,Type,FolderName,Folder.DeveoperName FROM Dashboard];
for(Dashboard d1 : listAllDashboards){
 System.debug(d1.Folder.DeveloperName);
}

 
Alisha Mehta 9Alisha Mehta 9
Hi Tejender,

Check your SOQL query, there is a spelling mistake in developername.
SELECT DeveloperName,Type,FolderName,Folder.DeveoperName FROM Dashboard.
Update it to - 
SELECT DeveloperName,Type,FolderName,Folder.DeveloperName FROM Dashboard.