+ Start a Discussion
jeremyyjeremyy 

Opp stages by record type

In Apex, how do you get a list of Opportunity stages for a specific record type?

Ankit AroraAnkit Arora

Is this helpful ??

 

 

List<OpportunityStage> lst = [select id from OpportunityStage where RecordTypeId =: '012900000002hTL'] ;
system.debug(':::::: ' + lst) ;

 

 

Thanks
Ankit Arora

 

 

Ankit AroraAnkit Arora

I have not tried it though. Same worked for Account.

 

 

Thanks
Ankit Arora

 

jeremyyjeremyy

OpportunityStage does not have a RecordTypeId field.