You need to sign in to do that
Don't have an account?
Can't to query the Contract field in opportunity
Hi,
I need to query the Contract lookup field from Opportunity to check if contract exists. But I can't able to see the contract field to query.
Any help
I need to query the Contract lookup field from Opportunity to check if contract exists. But I can't able to see the contract field to query.
Any help
NOte:- I created above code in notepad. My be you will get some sytex error.
Please let us know if above code will help u
Thanks,
Amit Chaudhary
Below is my query
List<AggregateResult> ar = [SELECT AccountId, Sum(ACV__c) ACVSum ,Sum(Total_Contract_Value__c) TCVSum from Opportunity where AccountId in :qualifiedAccIds and StageName = '6 - Client' and Contract_End_Date__c >= TODAY Group By AccountId];
I need to check if contract lookup exists in it..
The Contract field on the Opportunity is a standard lookup field.
Yet, when you try to query for it, that field simply isn't there.
A query such as this
will result in this error:
This is a problem and needs to be fixed.