Syntax for variables in templates
With incoming email, you can use variables in templates. Variables are useful when you need to substitute values for the fields to submit an entry.
Use the following syntax for variables:
If you expect the value of a variable to span multiple lines, then enclose the variable with brackets:
...
$$]
The following example of a template file (.arm file) submits a new employee name into the Employee Information form:
Server: server1
Action: Submit
Short Description !8!: $DATABASE$
Submitter !2!:$USER$
Employee Name !VEmployee Name!: [$$#$$VEmployee_Name$$#$$]
The characters between exclamation marks exactly match the field ID or database name of the field on the form. The variable is called VEmployee_Name. Because the variable might span multiple lines, it is enclosed by brackets [$$...$$].
When you send a submit instruction, you also can provide a value for variable $$VEmployee_Name$$, as shown in the following example:
Server: server1
Action: Submit
Short Description !8!: $DATABASE$
Submitter !2!:$USER$
!VEmployee_Name!: [$$Joe Smith$$]