...
The getFields function will return each field name defined for the data as an array, except for special internal field names (such as the stream_item_id).
Examples
The getFields function will return a list of field names. These can be extracted using normal array functions and assigned to a variable.
...