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

How to query opportunty stage all values.
I am wondering if I have to query other stages with prospecting so how I wrote below soql query:1
String query = 'Select Id, Name, Stage_change_reminder_count__c,StageName From Opportunity WHERE StageName = \'Prospecting\', \'Value Proposition\', \'Process Review\',\’ Validation\' and Open_Tasks__c=0 and Last_Activity_Age__c >=12 ';But it’s not working why? cann any one help me please.
You can Create a List and store all the values of a picklist in List eg OpportunityStageValuesList.add('A','B')
Select Id, Name, Stage_change_reminder_count__c,StageName FROM Opportunity WHERE Stage IN : OpportunityStageValuesList AND Open_Tasks__c=0 AND Last_Activity_Age__c >=12
I hope this helps,
Is there any way to store in strin because a have a batch apex code below:
So how can i use the list. Can you please help me.
Above code didn't work.