Expensify Report Exporting

Welcome to the Make community!

Can ChatGPT really generate Freemaker code?

A. Plain text file?

If that “Data” is an actual plain text file we are looking at,

You can try using a “Convert encoding” module using the same input and output encoding, then you can use the output of this module in a subsequent module (like Parse CSV or JSON).

Alternatively, you can simply try using the toString built-in function in the mapped field, something like this:  toString(data) .

B. Not Plain text file

If this is not a plain text file, use another file handling module like Google Drive’s “Upload a file” to send the file elsewhere, where you can download to your computer.

According to the Make documentation on Buffer (binary data),

File content is usually sent as Buffer type (image content, video file and others). In some cases, there is text data included in this type (e.g. text file). Make is able to automatically convert text data in binary code to text (and vice versa). For more information on working with files see the Working with files article.

For more information on how to map files (Binary Data), see https://www.make.com/en/help/mapping/working-with-files

2 Likes