Notifications
Clear all
Sep 09, 2022 7:32 am
How to get all the related cpq quotes with the opportunity name?
1 Reply
Sep 09, 2022 7:36 am
SELECT Id, Name FROM SBQQ__Quote__c WHERE SBQQ__Opportunity2__r.Name = 'OppName'
With bind variable it will be: SELECT Id, Name FROM SBQQ__Quote__c WHERE SBQQ__Opportunity2__r.Name=:varName
Reference: Salesforce CPQ interaction with Opportunity Fields
"A Quote will be related to the Opportunity if the Quote's Opportunity Lookup field (SBQQ__Opportunity2__c) is populated with the Opportunity."