How to export appointment to csv