You need to sign in to do that
Don't have an account?

SOQL query issue on Opportunity ?
Hi Team,
I have generated a report on Opportunity with same filter condition, for this filter i am using below soql query. But Report and developer cosole fetching different records (Records mismatch ).
SOQL Query :
----------------------
------------------------
Please let me know any one......
How can we resolve this issue...
I have generated a report on Opportunity with same filter condition, for this filter i am using below soql query. But Report and developer cosole fetching different records (Records mismatch ).
SOQL Query :
----------------------
Select id,Name from Opportunity WHERE (Category__c = 'Red Zone / Awarded, Negotiating Contract' OR Category__c = 'Top Pursuits' OR Category__c ='Cultivation Targets') AND (Region__c != 'Portfolio Services' OR Region__c !='KLMK' OR Region__c != 'Competitors ') AND Top_10__c = 'Yes' AND (Pursuit_Type__c ='New' OR Pursuit_Type__c ='Expansion' OR Pursuit_Type__c ='Renewal' OR Pursuit_Type__c ='Extension') AND (NOT Name Like '%Dummy%')Report Filter :
------------------------
Filtered By: Edit Category equals "Red Zone / Awarded, Negotiating Contract",Top Pursuits,Cultivation Targets Clear AND Selling Team not equal to Portfolio Services,KLMK,Competitors Clear AND Growth Report Pursuit equals Yes Clear AND Pursuit (Type) equals New,Expansion,Renewal,Extension Clear AND Opportunity Name does not contain Dummy Clear
Please let me know any one......
How can we resolve this issue...
Have you set the correct api name of Selling team field and Growth Report Pursuit field?
If yes, then try below SOQL query
All Answers
Have you set the correct api name of Selling team field and Growth Report Pursuit field?
If yes, then try below SOQL query
Thanks for you reply.
Instead of this i am using below query.
Regards,
Lakshmi.
Your query looks fine. What issue are you facing, Can you please explain.
Thanks
Thanks for you reply.
I have modified query using IN operator, now its working fine. As well as your query also working fine.
Thank you once again.
Regards,
Lakshmi