onChange Trigger not firing when using Google Driv

2019-07-23 07:22发布

问题:

I have a backend Ruby app that updates files in Google Drive using their API. On those files I have Google App Scripts running. I am having an issue when I update a file in google drive using my backend ruby script the Google App Script onChange or onEdit triggers don't fire. They only fire if I go into the file through the browser and edit something myself. Does anyone know why this is? Or a work around for it?

Thanks!

回答1:

The Apps Script onChange and onEdit triggers don't respond to changes made by the Google Drive API or the older Google Sheets API. They only respond to changes made by a user in the browser UI.