Using db connection inside an extension - best way

Using db connection inside an extension - best way

  
Hi all,

I am developing an extension to bulkcopy data from tables in an extenal database to  tables of the extension. I created a dbLink to external database, a view to the external table, and an action to execute the dbcommand. Is it possible to use the outsystems database connection (like run inside the extension? If don't, what is the best practice? Passing the connection string as action parameter?

Thanks 
Hi João

thank you


best regards
António Barroso