cancel
Showing results for 
Search instead for 
Did you mean: 

Anyone know how to customize email subject generated by Alerts from BPM

Former Member
0 Kudos

I'm generating Alerts from BPM. However, the Alerts generated this way has subject title with - Process and an id number like this 'Process 000000126930'.

I want to create custom subject line / email title.

I tried by creating and using container variables in the Alert category for the title and it did not work.

Any ideas on how to do this.

Thank you,

Parimala

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Parimala,

did you manage to achieve this?

Thanks

Former Member
0 Kudos

Hi Parimala,

You can use the external definition Mail strcuture (Mail.xsd) provided by SAP for XI. You can map your structure with the Mail structure where you can create any subject line and any content as well, depending upon your interface configuration.

Pls find the attached, Mail.xsd. Customize the subject, to, from etc. fields and populate the content branch element to send any message via the email.

<?xml version="1.0" encoding="UTF-8"?>

<xsd:schema targetNamespace="http://sap.com/xi/XI/Mail/30" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sap.com/xi/XI/Mail/30">

<xsd:element name="Mail">

<xsd:annotation>

<xsd:documentation>Mail package for XI - Mail Adapter</xsd:documentation>

</xsd:annotation>

<xsd:complexType>

<xsd:sequence>

<xsd:element name="Subject" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

<xsd:element name="From" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

<xsd:element name="To" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

<xsd:element name="Reply_To" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

<xsd:element name="Content_Type" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

<xsd:element name="Date" type="xsd:dateTime" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

<xsd:element name="Message_ID" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

<xsd:element name="X_Mailer" type="xsd:string" minOccurs="0" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

<xsd:element name="Content" minOccurs="0">

<xsd:annotation>

</xsd:annotation>

</xsd:element>

</xsd:sequence>

<xsd:attribute name="encoding" type="xsd:string" />

</xsd:complexType>

</xsd:element>

</xsd:schema>

Hope this helps, pls let me know if you need further info.

Cheers,

Ranjan

Former Member
0 Kudos

Hi Everyone,

We have a requirement to fill the subject line for alerts raised from the BPM.

Currently the subject line is filled the Process number and only the content could be supplied.

The ability to edit the subject line is helpful, for something like this: we would put the system id and the priority in the subject line, so that in the outlook preview itself the user can see the urgency of the message.

We could to use the mail adapter to send the messages, but it would be better to have the ability to do this within the alerting framework itself.

Thanks & Regards,

Renjith