script.getQuery
Returns the SQL set with script.processUpdateQuery. It doesn't return the SQL configured on the datasource.
js
script.getQuery()Returns
string | nullThe SQL, or null if it hasn't been set.
Examples
js
const query = script.getQuery();