How to export table from a record?