How can I extract Information in a Google Sheet from a xlsx gmail attachment via google apps script
问题 I want to extract the content from an xlsx gmail attachment via google apps script. And then put the information into a Google Sheet. It's working fine for CSV files, but I don't get the content of a xlsx file. 回答1: Unlike csv files, xlsx file data cannot be directly inserted into a spreadsheet What you can do instead: Save the attachment on your disc in its original mimeType Convert it to a Google Sheets document with e.g. Drive.Files.copy Delete the excel file from your disc Sample: