
Is there a quick way to create an API Query for every table in a Business Central system?
To create an API, a page must be published. If you mean a way to dinamically create the AL code definition for an API page to embed in an extension, I think that you can do that by using recordref and fieldref on the selected table. But from an extension code (during an extension execution) you cannot create and publish objects.