• Dmitry Chausov 8
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
I need to get information about the option from the apex code. Tried to get PicklistEntry and check isActive flag:
Schema.DescribeFieldResult fieldResult = Vote.Type.getDescribe();
List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
for(Schema.PicklistEntry f : ple){
    system.debug(f);
}
User-added image
All picklist options are active. 
 
I need to get information about the option from the apex code. Tried to get PicklistEntry and check isActive flag:
Schema.DescribeFieldResult fieldResult = Vote.Type.getDescribe();
List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
for(Schema.PicklistEntry f : ple){
    system.debug(f);
}
User-added image
All picklist options are active.