ServiceNow Query

I have a bunch of tables to get from ServiceNow Query snap. I want to parameterize them by passing table variable. It is throwing up an error:

Failure: An error occurred while fetching the records (status code: 400), Reason: Bad Request, Resolution: Please verify account credentials and/or input data provided.

Table names are stored in metadata and I am querying the metadata to get the list of tables, and am passing the table name as $ojbname. Somehow, servicenow query snap is throwing error. How do I parameterize this?