You need to sign in to do that
Don't have an account?
Dmitry Chausov 8
How can I check "Enable thumbs up or down voting for article" option on the org
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);
}
All picklist options are active.
Schema.DescribeFieldResult fieldResult = Vote.Type.getDescribe();
List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
for(Schema.PicklistEntry f : ple){
system.debug(f);
}
All picklist options are active.
But I need to get information about this setting from apex code (checked/unchecked):
As far as my knowledge goes, you can find out about that setting only through Metada API or through wsdl file. You can learn about metadata api from this link
https://andyinthecloud.com/category/metadata-api/
Thanks!