Overview
Creates a connection to the relevant system with the information defined on the domain and runs the queryDataTable $Database.ExecuteQuery(connectionName: string, query: string, timeout: number, parameters: object)
Arguments
string connectionName
name of external database name
string query
query to be run
number timeout
request timeout. Optional.
object parameters
arameters set on the query. Optional.
Example
$Database.ExecuteQuery("AppDB", "select * from Users where Id = @Id", 100, { Id: "1" });