Hi All,
We have some requirements where on some events on Google Editors, i need to send a callback to my backend.
I was thinking if we can utilize the alternate runtime feature for this. i.e. alternate runtime anyways send callback on specific trigger. So rather than sending the callback from app script to my backend , it will be easy to utilize the callback of alternate runtimes through the entrypoint triggers.
I have seen the entrypoints for alternate runtime here
https://developers.google.com/workspace/add-ons/guides/alternate-runtimes
But i would like to gett he callback for document save , exit etc.
Best Regards,
Saurav
Hi
Alternate runtime is not for this purpose it is a way to develop a Google Workspace Addon in another language than Apps Script.
Trigger in apps script are only for apps script so for example for onedit() trigger it is only for apps script. If you need to do some action son your side when there is edit action you can create an apps script taht will contact your backend when there is an edit.
With google api there isno watcher in the google docs api but you can try with the drive api, https://developers.google.com/drive/api/v3/reference/changes
But change for drive api will check for all the drive or a specific Shared Drive, so you will have to inspect the message if the file you want is in the response.
Stรฉphane