Export Excel file.

Hi,
Can anyone explain me, how to write a flow service to export the contents to a Excel file?