2022.2

Table Of Contents
l
Thequerymuststartwith=
l
Anyvariableorpropertymustbeenclosedincurlybrackets:{...}.Thiseffectivelyinsertsa
JavaScriptstatementinthequery.Notethatallothercurlybracketsmustbeescapedwithaback-
slash.
InsidethebracketsyoumayenteranyofthefollowingpropertyfieldsdefinedinthePreprocessorstep
(see"Fixedautomationproperties"onpage324and"Properties"onpage325):
l
Fixedautomationproperties.Theseareretrievedviatheautomationobject(see"Objects"on
page369),forexampleautomation.jobInfo.JobInfo9orauto-
mation.properties.OriginalFilename.
l
Propertiesthathavetheirscopesetto"Entiredata".Theseareretrievedviathedataobject(see
"data"onpage374),forexample:data.properties.myProperty.
l
Propertiesthathavetheirscopesetto"Automationvariable".Theseareretrievedviaauto-
mation.variables(see"Objects"onpage369),forexampleauto-
mation.variables.FieldList.
Propertiesthathavetheirscopesetto"Eachrecord"andcan notbeusedbecausetheSQLqueryis
executedbeforeanyrecordiscreated.Forthesamereason,variablesdeclaredinotherStepscannot
beused.
Example
= SELECT {automation.variables.FieldList} FROM {auto-
mation.jobInfo.JobInfo9}
IftheWorkflowvariabledefinedasFieldListcontainsthevalue"id,name"andJobInfo9containsthe
value"MyTable",thenthiscustomquery,onceparsed,yieldsthefollowingSQLstatement:
SELECTid,nameFROMMyTable
whichisthenexecuted.
Stepspane
TheStepstabdisplaysthedatamappingworkflow:theprocessthatpreparesandextractsdata.The
processcontainsmultipledistinctstepsandisrunforeachoftherecordsinthesourcedata.Formore
informationaboutthestepsandhowtousethem,pleaserefertoStepsand"Datamappingworkflow"
onpage221.
Findingastep
Tofindacertainstepinalargedatamappingworkflow,starttypingthenameofthestepintheFind
StepfieldatthetopoftheStepspane,andpressEnter.Usethebuttonsnexttothenumberofsearch
resultstonavigatethroughthematchingsteps.
Notethatthesearchiscase-insensitive.
Page 321