• mars1 Rover
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
I am new in salesforce, I have a problem with Database.query. Its not returning the data to apex class, But while i am using query editor its showing the correct data. My query is
List<CM_Group__c> e = Database.query('SELECT 
        CM_Skill_Level__c,CM_Start_Date__c,Name FROM CM_Employee__c where 
        CM_Start_Date__c != null');
        System.debug(e);
when iam checking with debug log it showing empty. But when i am using query editor it showing the below result 
User-added image
Any help would be appreciatable
 
I am new in salesforce, I have a problem with Database.query. Its not returning the data to apex class, But while i am using query editor its showing the correct data. My query is
List<CM_Group__c> e = Database.query('SELECT 
        CM_Skill_Level__c,CM_Start_Date__c,Name FROM CM_Employee__c where 
        CM_Start_Date__c != null');
        System.debug(e);
when iam checking with debug log it showing empty. But when i am using query editor it showing the below result 
User-added image
Any help would be appreciatable