SHARE
TWEET

Untitled

a guest Feb 19th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. updatedQuoteLines = new Map<Id, SBQQ__QuoteLine__c>(
  2.                        [SELECT Id, A5_TT_Total__c
  3.                           FROM SBQQ__QuoteLine__c
  4.                          WHERE SBQQ__Quote__c=: CreateQuoteId]
  5.                        );
  6.  
  7. // get saved QuoteModel    
  8. Quote = readQuote(someQuoteId);
  9.  
  10. for (QuoteLineModel Quoteline : Quote.lineItems){
  11.  
  12.     Decimal fieldFromModel = Quoteline.record.A5_TT_Total__c;
  13.     System.debug('check fieldFromModel: '+fieldFromModel); // returns null because the field isn't returned as part of QuoteLine model
  14.     Decimal fieldFromQuery = updatedQuoteLines.get(Quoteline.record.Id).A5_TT_Total__c);
  15.     System.debug('check fieldFromQuery: '+fieldFromQuery); // returns 150 because the QuoteLine was updated via SBQQ.ServiceRouter.save()
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top