• Maxine Smith
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi, I'm new to custom settings.  I have created one, and can put a query in my developer console window which gives my answer - select Name, NumberOfDays__c from DaysToDelete__c.  If I use the very same query in my Apex class, it returns no rows.  Why is this?  I must be doing something wrong.  The custom setting is a list and is public.  I know you don't need to use a query with custom settings so I also have a line in my code, DaysToDelete__c myCS1 = DaysToDelete__c.getValues('DayNumber');   This returns nothing too.  Please help!
Hi, I'm new to custom settings.  I have created one, and can put a query in my developer console window which gives my answer - select Name, NumberOfDays__c from DaysToDelete__c.  If I use the very same query in my Apex class, it returns no rows.  Why is this?  I must be doing something wrong.  The custom setting is a list and is public.  I know you don't need to use a query with custom settings so I also have a line in my code, DaysToDelete__c myCS1 = DaysToDelete__c.getValues('DayNumber');   This returns nothing too.  Please help!