I got a situation that if I pass the controlling picklist name then I have to find the dependent picklist field name using APEX. I know the vice versa can be achieved though ie , Dependent ----> Controller using
Schema.sObjectField controllerField = dependentField.getController();
but I need to find using controller ---> Dependent
Eg , I am having Program__C as controller picklist and ProgramType__c as dependent picklist
Schema.sObjectField controllerField = ProgramType__c .getController();
I can able to get
Program__C but I need help for vice versa .