The easiest way is to have all possible fields displayed in the current INETAPP log file srvlog.txt
. If, for example, you want to know the fields for the trigger MAIL_OUT
, then enter an addition in the file trigger_mail_out.txt
below the existing entries.
According to the example below, you now create a new test request by e-mail from a user who is a member of the "VIP" user group. This will fire the trigger. The following is an example:
function checkData(table, out){ if(table.get("benutzergruppe").equals("VIP")){ if(table.get("typdescription").equals("IMAP new Order")){ table.put("templatename","VIP_Antwort.html"); } } print_Parameters(table, out); } function print_Parameters(table, out){ var key; var tableKeys = table.keys(); while(tableKeys.hasMoreElements()){ key = tableKeys.nextElement(); out.println(key + " " + table.get(key)); } }