google apps script - Installable OnEdit not being called in Stock spreadsheet -


i have function (in google apps script), not called onedit(), else , has been set called on edit events via in installable onedit on google spreadsheet.

the spreadsheet around stocks , monitors portfolio , purpose of function send email stop loss hit on stock, i.e. price of stock falls price. price of stock retrieved , updated via google finance api in column in spreadsheet.

now, when running function script or locally editing spreadsheet, function called successfully. however, finding stock price updating automatically throughout day on google drive , falling stop loss price, on edit function not being called. read somewhere not being called "anonymous" user? know it's not being called have "email counter" column, decreases every time function called, , once @ 0 no more mails sent avoid spamming. not decreasing via google finance api automatic price updates. can advise causing , if there workaround?

a list of things-that-don't-trigger-onedit, along issue tracking ids, provided in previous answer.

content of spreadsheet changed scripts not trigger onedit.

a work-around might use time-based trigger, , in call-back scan , react ti changes. (could updater set trigger fire in near future, perhaps?) challenges around balancing responsiveness vs trigger limits.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -