Email content template with Submit and Query actions


The following example submits an entry into a form, then queries that same form.

When creating or modifying templates, any values that are defined before the Action label are global and apply to all the actions specified. Any value declared after the Action statement takes precedence over the global definition for that action only.

In the following example, the Schema and Server label/value pairs are global, and therefore apply to both the Submit and Query actions.

Schema: HD Incident
Server: polycarp
Login: Demo
Password:

Action: Submit
# Values: Submit, Query
Format: Full
# Values: Short, Full
Submitter ! 2!: $USER$
Short Description ! 8!: Need to create new post office box.
!Last Name!: Stampovich
!First Name!: Ivan
!Email!: stampovic@bmc.com
!Location!: Sunnyvale
!Phone!: 222-3333
!Status!: Assigned
!Impact!: Medium
!Item!: Email
!Category!: Applications
!Type!: Office
!Problem Summary!: Need to create new post office box.
!536870920!:  boot.ini
!536870920!:  boot.ini
Action: Query
Qualification: 1=1

If you did not specify a template for the email reply, the Email Enginewould reply with the results shown in the following figure:

 Reply to an action template using the default format
e-reply-no-templ.gif

The Query action returns the Submit entry to the user, along with any other entries that meet the qualification. Because no template was defined as a Results Template, the Email Engineuses the default internal text format.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*