I have a flow which saves the attachments - XLSX or CSV files - to the mail as it is in SharePoint folder. The name of the attachment can be used as files should be rewritten over time. Now all files are created corrupted, therefore cant be open.

The problem is that formats of files attached and files created are the same.