javascript - Google Apps Script doesn't find file -
i want check, if file exists on google drive:
var filename = 'xyz'; var files = driveapp.getfilesbyname(filename); if (files.hasnext()) { ... } this did work month. stopped working few weeks ago. result of hasnext() false - although filename exist.
did change @ google apps script? wrong code? can fix it?
finally, found how retrieve files filename included umlauts. please confirm this. title contains required query. not title=. please confirm following script script.
script :
var name = "Übergabe news"; var files = driveapp.searchfiles('title contains "' + name + '" , trashed=false'); if (files.hasnext()) { ... } also can use "20170817 nachrichten-Übergabe" in comments. i'm sorry being late solution.
Comments
Post a Comment