The ability to reference Local Datasources and tables by variable

It would be a great time and block saver if there was the option to reference local datasources and tables dynamically via variables.

I have 35 tables and have to create separate blocks to populate each one from a JSON request. If variables could be used, it would be just one set of blocks just changing the table variable in a loop or in a function.