Actually checkout https://cfengine.com/archive/manuals/cf3-Reference#Function-getfields