Monday, March 03, 2014

Send a hyperlink in Email notification from SOA

In order to send a hyperlink in email notification one needs to send an HTML data as an input parameters to the Email service.

A project can have an email notification service that needs to be called in case of an error/exception.

If the requirement is to send a hyperlink in email notification (Typically an instance id is send a hyperlink is marked which takes us to the actual instance)

In such scenario this is how you will send the data to the email notification.

<html>
<body>
<table>
<tr>
<td>Instance ID</td>
<td><a target= "" href="http://www.arpit.com">Test</a><br/></td>
</tr>
<tr>
<td>Service</td>
<td>Test Service</td>
</tr>
</table>
</body>
</html>


Here the URL that you will pass and be dynamically retrieved at run time.

So once you will pass this notification message you will be the following output as shown below.

you can observer the Instance id field



The InstanceId value "Test" is a hyperlink which on clicking will point you to the url mentioned.

This can be used in SOA code and manipulated to fulfill the business requirement.

No comments: