0
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?

1 Answer 1

1

You have a typo in your code. SBQQ__QuoteLine_c should be SBQQ__QuoteLine__c; you missed an underscore.

2
  • That's very silly on my part! Commented Dec 6, 2021 at 5:56
  • @kishan's We've all been there, sometimes we just need a second opinion. Glad I could help!
    – sfdcfox
    Commented Dec 6, 2021 at 15:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .