• Nagireddy Manohar
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
Why Hierarchy custom settings are required. if we can achieve same through list custom settings.
Example:
while creating data in Hierarchy custom settings, we need to select user or profile, we can acess those values in apex by using below piece of code.
CustomSettingName__c mc = CustomSettingName__c.getInstance(Profile_ID);
CustomSettingName__c mc = CustomSettingName__c.getInstance(User_ID);

If we use list custom setting, while creating data if we give name as userid or profileid, we can access those values in apex by using below piece of code.
CustomSettingName__c mc = CustomSettingName__c.getValues(userinfo.getuserid());
CustomSettingName__c mc = CustomSettingName__c.getValues(userinfo.getprofileid());

So we can achieve  using list custom settings also .Then what is the main use of Hierarchy custom settings comapred to list custom settings?  
Please let me know is there any specific reason to create Hierarchy custom settings?.

Thanks & Regards,
N. Manohar


 
Hi Folks,

I am not able to edit my apex class because in the backend some Schedule Apex classes are running but am not able to find exact Schedule Apex Class.

How can we find out the scheduler class name and that belongs to which class.

Is there any logic behind that,to get to know exactly(I had tried with queries but not able to find any solution)

Please guide me...

Thanks in Advance....