I have this simple code:
function doPost(e) {
Logger.log(JSON.stringify(e));
}
Already deployed this as a web app, and copied the web app URL.
In Box, I created a Webhook app and then included the apps script web app URL as the address. However, when I trigger the webhook, my apps script doesn’t log anything. It doesn’t even show any failed execution.
I tried using a temporary url from webhook.site
, and it is properly receiving JSON data from the Box webhook, so I figured the issue might be with apps script.
Other notes:
- I’m using a corporate email address, and the web app url goes with something like this:
https://script.google.com/a/macros/company.com/s/xxxx/exec
wherecompany.com
is our domain. I tried changing this tohttps://script.google.com/macros/s/xxx/exec
but still doesn’t work.
Where do you think did I go wrong with setting up the apps script web app? Thanks in advance!
Update:
Here is my deployment configuration. In the ‘who has access’, there’s no ‘Anyone’ option, just ‘Anyone within [Company name]’. Could that be the reason?
Also, here is my execution panel, though it’s empty and the executions there are just me manually running the function and trying to figure out something.
3
Who has access should be “Anyone” – not “Anyone within company”. If that option is unavailable, contact your admin to enable that option.
3