email task custom email

Posted: 6 July 2011 in Uncategorized

If you want to create custom emails, it is fairly easy since it is all using XSL to transform the XML of the job.
the hard part is to figure out what the the original XML to transform is:

create a debug.xsl stylesheet which will do no transformation at all:
<?xml version=”1.0″ encoding=”UTF-8″?>
<xsl:stylesheet xmlns:xsl=”” version=”1.0″>
<xsl:output method=”xml” />
<xsl:template match=”/”><xsl:copy><xsl:apply-templates /></xsl:copy></xsl:template>
<xsl:template match=”*” name=”elements”><xsl:copy><xsl:apply-templates select=”@*” /><xsl:apply-templates /></xsl:copy></xsl:template>
<xsl:template match=”@*” name=”attributes”><xsl:copy /></xsl:template>

Add a email task to your workflow and customise its mail template property to the file in teamsite. It is a good idea to place them all together so mine is:

Run the workflow and check your inbox ; The message contains your xml content. Now all you have to do is create additional templates and you will have your custom emails in no time. What’s more, you can swap between them as you like as they all render the same XML.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s