Search code examples
coldfusionreactor

How to get a record's column names using CF Reactor?


I'd like to get a list/array of a record object's column names. I suppose I could get this by looping thru the method names, but I was hoping that there would be something cleaner?


Solution

  • Use _getObjectMetadata().getFields() to get all of the fields on a Reactor object :)