Pull csv to Google Sheets with basic authentication

会有一股神秘感。 提交于 2019-12-02 12:25:48

Well, as I haven't seen your CSV file, it's not that easy to predict where things goes wrong. However, I found that changing the regular expression in the parseCsvResponse method to include \r fixed the problem for me. Thus, the line reads

var strLines = csvString.split(/\n|\r/g);

Secondly, I can't see where you get the sheet-variable from. I used the following line of code:

var sheet = SpreadsheetApp.getActiveSheet();

Lastly, I noticed that the script requested authorization when I tried to run it. I assume you have granted the permissions required?

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