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

Accessing Opportunity field

Hi,  I would like to access a field in my trigger.  The field is called Type.  It is a picklist located within the StageName Picklist in the Opportunity object.  (Not to be confused with the Opportunity - Type field)
 for (Opportunity a: Trigger.New) {
  if (a.StageName(would like to access Type here) == 'Closed Won') {

How can I access it?  Thank you.
Damien Phillippi033905702927186443Damien Phillippi033905702927186443
I think you might be a little confused.  The StageName on the Opportunity is a field which is also a picklist.  A field can not contain another field.  Do you have more details for the question you are asking?