How do I specify BOTH a success AND a failure handler for the same server call with google.script.run?
The onEdit(e) trigger runs automatically when a user changes the value of any cell in a spreadsheet.
Handle POST Requests with Google ScriptsThe callback function doPost is invoked when an HTTP POST request is make to your Google Script URL that is published as a web app with anonymous access. const doPost = (request) => { console. log(request); return ContentService. crateTextOutput(JSON.
The following code should do what you need
google.script.run.withFailureHandler(myFailureHandler).withSuccessHandler(handler1);
It is documented in the Success and Failure Handlers
paragraph. The text starts with
You can use any combination of withSuccessHandler, withFailureHandler, and withUserObject.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With