Automatically converting Excel Files to Google Sheets

僤鯓⒐⒋嵵緔 提交于 2021-02-05 06:49:06

问题


I have a google account that uses the save emails and attachments add-on.

https://chrome.google.com/webstore/detail/save-emails-and-attachmen/nflmnfjphdbeagnilbihcodcophecebc?hl=en

The email account only receives excel sheets as attachments, and those are saved to a specific folder automatically.

Is it possible to have those sheets converted automatically to google sheets upon save (or after save). Currently, I have to open the file with google sheets to convert it.

I have tried setting the folder to Convert uploaded files to Google Docs editor format, but that doesn't work for this.

Any suggestions would be greatly appreciated.

Eric


回答1:


if you're wishing to do this with the Drive API, then you can do so using the examples given in Upload Files, see the section headed Importing to Google Docs types. Essentially, by setting the source file MIME type to application/vnd.openxmlformats-officedocument.spreadsheetml.sheet and that of the new file to application/vnd.google-apps.spreadsheet, this indicates that the conversion is required on upload.



来源:https://stackoverflow.com/questions/40920779/automatically-converting-excel-files-to-google-sheets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!