function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.