I have a webservice method that takes the $_REQUEST from the URL parameter of my app and I believe handles it like an array, for example:
inputs.param1 = "some_value"
inputs.param2 = "1209845, 2348425876, 2958263459, etc"
In Chrome developer tools it looks like this
But now I need to use the "Ids" parameter to make up a dynamic SOQL query in the WHERE
statement. I assume I can get the parameter from my inputs
variable by referring to the ids attribute of the variable like this
inputs.ids
Which should equate to "####, ####, ####"
, but I am not sure if SF considers this an <Array>
or a <String>
.
Either way, I need to convert this parameter to a <String>
with each Id # wrapped in single-quotes. So that I can have a WHERE statement like this work: WHERE Id IN :ids