The fact that the table is external  is just a concern of storage strategy in the generated Caché Class
To your COS code  it's just another class projected as table.

Use it by your preferred ResultSet Class
It might be a good idea to check access first from Mgmt Portal to verify access rights.

for the example:
http://docs.intersystems.com/latest/csp/documatic/%25CSP.Documatic.cls?P...