1.5

Table Of Contents
Name Description Object
Related
Available In File Type
setVariable()
Method that
sets a variable
to the specified
value,
automatically
creating the
variable if it
doesn't exist
yet.
automation
and
boundaries
Boundaries all
totalPages() Returns an
integer value
representing
the total
number of
pages inside
the current
record.
steps Extract,
Condition,
Repeat, and
Action steps
Text and
PDF
Write Your Own Scripts
Data mapping can be taken a lot further than just performing basic extractions. Every part of
your extraction process can be customized using scripts. This topic explains how scripts work
and how you can create and write a script.
How Scripts Work
A script is a small set of instructions, written in JavaScript. When Connect generates the actual
extraction process, it takes each step, one by one, and runs all scripts for it.
Creating a New Script
In DataMapper, you can use scripts to set Boundaries (see Boundaries Using JavaScript) or in
the Step Properties for steps such as:
Page 214