I am communicating with google apps script with the following:
$.get(url, "name=alice&n=1&n=2", function(data) {
...
}).fail(function(xhr, status, error) {
...
});
The outgoing request url is:
.../exec?name=alice&n=1&n=2
The problem I am encountering is that on the apps-script side, the doGet function doesn’t seem to be recognizing the existence of the query string. I have the following doGet function:
function doGet(e) {
var groupNumber = e.queryString;
if (groupNumber != null) {
return A
} else {
return B
}
}
The problem I am encountering is that the variable groupNumber
is always getting set to null
and thus the B
is always getting returned, and not A. I have saved and deployed the app script and am using the up-to-date url.