2019.2

Table Of Contents
Using variables and properties in an SQL query
When you use variables and properties in an SQL query, the selection will be dynamically
adjusted each time the data mapping configuration is actually used in a Workflow process.
To create a dynamic SQL query:
l
The query must start with =
l
Any variable or property must be enclosed in curly brackets: { ... }. This effectively inserts
a JavaScript statement in the query. Note that all other curly brackets must be escaped
with a backslash.
Inside the brackets you may enter any of the following property fields defined in the
Preprocessor step (see "Fixed Automation Properties" on page358 and "Properties" on
page359):
l
Fixed automation properties. These are retrieved via the
automation
object (see "Objects" on page406), for example
automation.jobInfo.JobInfo9
or
automation.properties.OriginalFilename
.
l
Properties that have their scope set to "Entire data". These are retrieved via the
data
object (see "data" on page413), for example:
data.properties.myProperty
.
l
Properties that have their scope set to "Automation variable". These are retrieved via
automation.variables
(see "Objects" on page406), for example
automation.variables.FieldList
.
Properties that have their scope set to "Each record" and can not be used because the SQL
query is executed before any record is created. For the same reason, variables declared in
other Steps can not be used.
Page 354