Hi Community,
I'm trying to read out the different options a drop-down field in a job definition has from automation.
Does anyone know how this can be done?
Ive Herreman [SLC] [DevOps Catalyst] Selected answer as best 1st February 2022
Hi Ive,
You're problably looking for the following piece of code:
var gefd = sectionDefinition.GetFieldDescriptorById(fieldID) as GenericEnumFieldDescriptor
This object exposes the entries of the enum as follows:
gefd.GenericEnumInstance.Entries
Let me know if you need additional assistance.
Ive Herreman [SLC] [DevOps Catalyst] Selected answer as best 1st February 2022
Hi Sebastiaan,
That works perfectly!
Many thanks for your swift assistance.