Get the fields according to the defined configuration
get_fields(td)
td
A when object.
when
A vector of string.