List<SBQQ__QuoteLineConsumptionRate__c> quoteLineConsumptionRates = [SELECT id, SBQQ__LowerBound__c, SBQQ__UpperBound__c, SBQQ__Price__c, SBQQ__QuoteLineConsumptionSchedule__r.SBQQ__QuoteLine__c, SBQQ__QuoteLineConsumptionSchedule__c FROM SBQQ__QuoteLineConsumptionRate__c];
for(SBQQ__QuoteLineConsumptionRate__c qlcr : quoteLineConsumptionRates){
system.debug(qlcr.SBQQ__QuoteLineConsumptionSchedule__r.SBQQ__QuoteLine_c); // Error: Variable does not exist: SBQQ__QuoteLine_c
}
When I run the query in query editor, I am able to retrieve SBQQ__QuoteLineConsumptionSchedule__r.SBQQ__QuoteLine_c
value. Whereas, when i try to loop the list and try to debug the SBQQ__QuoteLine_c
Id, I am getting the error : Variable does not exist: SBQQ__QuoteLine_c
Am i doing anything wrong?