Examples of formatted e-mail messages using create and update functions

You can compose formatted e-mail messages that use the create and update functions. You compose these messages using XML tags or attribute-value pairs.

Examples

The following table contains examples of formatted e-mail messages that use the create and update functions. These examples were composed with attribute-value pair and XML tags. You can use these examples as reference or as a template to create formatted e-mail messages in the E-mail Listeners application.
Table 1. Examples of formatted e-mail messages that use attribute-value pair create or update functions
Attribute-value pair create or update function Example
Create a service request
#MAXIMO_EMAIL_BEGIN
LSNRACTION=CREATE
;
LSNRAPPLIESTO=SR
;
TICKETID=&AUTOKEY& 
; 
CLASS=SR 
; 
DESCRIPTION= My SR Attribute – value pairs creation TEST 
; 
#MAXIMO_EMAIL_END
Update specific attributes of an existing service request
#MAXIMO_EMAIL_BEGIN
LSNRACTION=UPDATE
;
LSNRAPPLIESTO=SR
;
TICKETID=SRNUM
;
CLASS=SR
;
DESCRIPTION=Update reported by, priority and classification test.
;
REPORTEDPRIORITY=2
;
CLASSSTRUCTUREID=1087
;
#MAXIMO_EMAIL_END
Table 2. Examples of formatted e-mail messages that use XML create or update functions
XML create or update function Example
Create a service request
<MAXIMOEMAILCONTENT>
<LSNRACTION>CREATE</LSNRACTION>
<LSNRAPPLIESTO>SR</LSNRAPPLIESTO>
<TICKETID><![CDATA[&AUTOKEY&]]></TICKETID>
<CLASS>SR</CLASS>
<DESCRIPTION>My XML SR creation e-mail test</DESCRIPTION>
</MAXIMOEMAILCONTENT>
Update an existing service request
<MAXIMOEMAILCONTENT>
<LSNRACTION>UPDATE</LSNRACTION>
<LSNRAPPLIESTO>SR</LSNRAPPLIESTO>
<TICKETID>SRNUM</TICKETID>
<CLASS>SR</CLASS>
<COMMODITYGROUP>IT</COMMODITYGROUP>
<COMMODITY>PC</COMMODITY>
<DESCRIPTION>My XML update of service group, service, and 
site field</DESCRIPTION>
<SITEID>BEDFORD</SITEID>
</MAXIMOEMAILCONTENT>