Skip to main content

Run Query

Runs a query that retrieves data from a previously connected database (usually a SELECT query).

Category: Database Operations · Group: Database · Activity name: RunQuery

The RunQuery activity in the designer

Example

outputVariable = RunQuery("<db>", "<query>")

Inputs

NameTypeRequiredDefaultDescription
Database VariablereferenceYesThe variable where the database connection was stored.
QuerystringYesThe query to be processed.

Outputs

NameTypeDescription
outputVariablearraySpecifies the name of the variable that will store the retrieved data.