Hi,
I'm implementing a YQL table with an "execute" statement to query a web service using Javascript. I have an input parameter which I need to be batchable, so that I can pass through multiple values to the web service.
For example:
YQL: SELECT * FROM teams WHERE teamId IN (1, 2, 3, 4)
calls this URL:
http://myserver/service/teams?teamIds=1,2,3,4
In my "execute" Javascript block, when I try to access the input variable (i.e. inputs['teamIds'] ) the object doesn't seem to be an array (it doesn't support any Javascript array methods like "join()" or "length"). It only seems to work for "toString()" which outputs text in the format "[1, 2, 3, 4]".
How would I access the individual items in a batchable input variable? I would like to do something like this:
var teamString = inputs['teamId'].join("|");
Thanks,
Nathan