Hey all,
In recent months, the on change event triggers I have setup to tie AppSheet and my AppScripts together have all stopped working. It literally won't process the change, though if I do the change manually, the script works fine. So it seems that the onChange trigger is simply not working when the change comes via AppSheet.
I understand there is now a native-script call feature in AppSheet, and I have followed the steps I've found to take advantage of them. Still no dice.
My main issue seems to be calling the script itself. In order to find a script in AppSheet, it must be a stand-alone script file not tied to a specific sheet. But the script I want to trigger is tied to a sheet. And when i copy it as a stand alone file, it won't allow me to create an onChange trigger for it, only time-based or calendar-based triggers.
Any ideas how to rectify this? Or how to change my script to make it work again?
This is the script that *was* working a few months ago:
---
AppSheet/GAS integration only works for stand alone script.
Twist your script to call the spreadsheet, by calling with ID or name to trigger your GAS.
I can confirm that changes via Appsheet do still trigger onChange triggers. Have you checked the execution logs? Have you confirmed that you still have the onChange trigger installed?
My main issue seems to be calling the script itself. In order to find a script in AppSheet, it must be a stand-alone script file not tied to a specific sheet. But the script I want to trigger is tied to a sheet. And when i copy it as a stand alone file, it won't allow me to create an onChange trigger for it, only time-based or calendar-based triggers.
The purpose of copying it to stand-alone script is so that you can directly call it from an Appsheet Bot, thus there is no more need for an onChange trigger. You'd have to open your spreadsheet and sheet by ids and names from a stand-alone script.
If you're making changes to the sheet via script, I'd probably stick to an onChange trigger on a linked script, since you automatically get the source of the change.
User | Count |
---|---|
17 | |
11 | |
7 | |
3 | |
2 |