Google Apps Script and use cases
AppSheet provides a webhook as a task for automation, where the app creator can send the webhook request to the external services, to invoke any action or post data externally. This is a useful function, but there is no version of a GET request available natively inside the AppSheet editor. This is because there is no space to store the response body that we receive as a consequence of such an HTTP request.
Furthermore, the response body (generally in JSON format) varies by API. It is impossible to standardize the method to convert the API response body so that AppSheet can consume it. However, in practical use cases, app creators wish to get the data outside AppSheet and consume it within the app. For this use case, Google Apps Script provides a workaround. These are not purely tips and tricks for AppSheet but are associated more with Google Sheets configuration.
In any case, let’s briefly explain how to get data using Google Apps Script...