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
Harry Training DepartmentHarry Training Department 

Find apex/visualforce/aura component using apex?

Hi Team,

I recently moved to a new project where I've been asked to analyze existing code. I see code similar to below,
public class Zinc_AccountDetail {
    @auraenabled public Id Id {get; set;}
    @auraenabled public String Organizationname{get; set;}

}

How to find which apex/visual force/aura component is using Zinc_AccountDetail ?

 
Van DungVan Dung

Dear Harry,

I think that difficult to get it by an easy way. 
You should get dependency class first. After that, you must refer them to check the logic.

Regards,

Bavadharani GanesanBavadharani Ganesan
Hi Harry,
Do the following steps,
  • Open the developer console. press ctrl + shift + h and then enter the class name/component name which you want to search
  • It will fetch you all the components which you searched for. 
Please mark it as best answer if it is helpful to you :)
sssssssssssssssssssssss ssssssssssssssssssssssss s
I have a class with annotation @auraEnabled. I am not able to find which VF page or Aura component its being used in.
Any suggestions?
Bavadharani GanesanBavadharani Ganesan
Hi,
You can search your class by retrieving all your lightning components and vf pages in local and search it in the sublime editor by opening lightning components and vf pages.