
Velocity Script Documentation
© AGNITAS AG
Table of contents
- 1 Appendix C: Velocity Script
- 1.1 Essentials
- 1.1.1 Comments
- 1.1.2 Variable assignments
- 1.1.3 Outputting variables in forms
- 1.1.4 Use of variables in surrounding text
- 1.1.5 Generating an empty list
- 1.1.6 Branches (IF)
- 1.1.7 Grinding (While, Foreach)
- 1.1.8 Direct use of the request parameters and request header
- 1.1.9 String editing (Substring)
- 1.1.10 Calculating with numerical values from strings
- 1.1.11 Display of the success page or error page for forms
- 1.2 ScriptHelper functions
- 1.2.1 Assign a voucher code (voucher codes)
- 1.2.2 Link web push login to a possibly existing recipient
- 1.2.3 E-mail address change by recipient
- 1.2.4 Change recipient data
- 1.2.5 Creating an AgnUID for an existing recepient
- 1.2.6 decodeUID (String)
- 1.2.7 URL encoding SessionIDs and other values
- 1.2.8 Determining the last newsletter sent out
- 1.2.9 Query the name of a mailing
- 1.2.10 Query the subject of a mailing
- 1.2.11 Querying the dispatch date of a mailing
- 1.2.12 Formatting the date
- 1.2.13 Using the current date
- 1.2.14 Formatting numbers
- 1.2.15 Convert numbers to strings
- 1.2.16 Convert string to number
- 1.2.17 Convert int-number to integer-number
- 1.2.18 Requesting the last mailing sent to a recipient
- 1.2.19 Creating a "double quotation mark"
- 1.2.20 List of numbers from 1 to x
- 1.2.21 Query of the last mailing sent by a client
- 1.2.22 Creating a line break
- 1.2.23 Reading a reference table value
- 1.2.24 Log output to the error log file on the Rdir server
- 1.2.25 Write log file
- 1.2.26 Calculating the residual value of a division
- 1.2.27 (Obsolete) Map functions
- 1.2.28 Filling or delimiting a text
- 1.2.29 Processing a text as a date
- 1.2.30 Validating a Google reCaptcha token
- 1.2.31 Parsing XML data and sending event based mailings
- 1.2.32 Sending email (without existing EMM mailing) within a script
- 1.2.33 Sending of an eventbased mailing within a script
- 1.2.34 Creating a SHA-512 hash to a text
- 1.2.35 Measuring the past time within a velocity script action (debugging)
- 1.2.36 Setting a new DatasourceID at the recipient
- 1.2.37 URL-encoding of text for links
- 1.2.38 Check / validate e-mail address
- 1.2.39 Create a random value
- 1.2.40 Query value from reference table
- 1.3 Examples
1 Appendix C: Velocity Script
The E-Marketing Manager can use velocity scripts to implement complex tasks in actions.
By using your own script actions, you can extend the functionality of the EMM individually. In this documentation, you will learn what you need to consider when using the script actions and what options are available.