How to include HTML-tags in CA Service Catalog-PAM email message(sendRequestEmail).
For the endusers to get a more/better readable email content.
This appears to be a matter of correctly formatting this in the web services call(sendRequestEmail).
The text with HTML-tags, needs to be incorporated in a CDATA structure:
<emailMessage xsi:type="xsd:string"><![CDATA[<html><body style="color:red"> Welcome <br> to Test.</br> Text.</body></html>]]></emailMessage>
As shown in the below SOAPUI example.
Execute:
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.soap.usm.ca.com">
<soapenv:Header/>
<soapenv:Body>
<ser:sendRequestEmail soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<sessionID xsi:type="xsd:string">ada0a626-a9cf-41df-83fa-3bf702cb9b5d</sessionID>
<requestId xsi:type="xsd:int">10162</requestId>
<includeRequestDetails xsi:type="xsd:boolean">true</includeRequestDetails>
<emailFromAddress xsi:type="xsd:string">[email protected]</emailFromAddress>
<emailFromName xsi:type="xsd:string">spadmin</emailFromName>
<emailTo xsi:type="xsd:string">[email protected]</emailTo>
<emailCC xsi:type="xsd:string"></emailCC>
<emailBCC xsi:type="xsd:string"></emailBCC>
<emailSubject xsi:type="xsd:string">Test HTML Text</emailSubject>
<emailMessage xsi:type="xsd:string"><![CDATA[<html><body style="color:red"> Welcome <br> to Test.</br> Text.</body></html>]]></emailMessage>
</ser:sendRequestEmail>
</soapenv:Body>
</soapenv:Envelope>
Result:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:sendRequestEmailResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://services.soap.usm.ca.com">
<sendRequestEmailReturn xsi:type="xsd:boolean">true</sendRequestEmailReturn>
</ns1:sendRequestEmailResponse>
</soapenv:Body>
</soapenv:Envelope>