Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Use Contents in Information Email Template

  • Last UpdatedJun 10, 2024
  • 2 minute read

Email templates can be used to display the values of the contents that have been created in a workflow.

Consider that a Content of type number and by name 'EmployeeAge' is created in the Start activity and at runtime its value is 21.

User wants to do the following:

  1. Display the content's value in Information email.

  2. Display the variable's value after "Submitted on" row in the Task Details Table.

Solution

To display this the content's value in Information email and to display the variable's value after "Submitted on" row in the Task Details Table:

Steps:

  1. Copy Information.html file.

  2. Use the <%#Variable.Contentname%> placeholder in the html template for viewing the content's value, where <Contentname> is a name of the content.

    Use the <%#Content.EmployeeAge%> placeholder in the html template, where the value is to be displayed. Since the Content name is "EmployeeAge", the placeholder to be used is <%#Content.EmployeeAge%>. The highlighted portion in the below code displays the position where the <%#Content.EmployeeAge%> placeholder is added.

    <html>

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    <title>Mailer</title>

    <style type="text/css">

    <!--

    .style2 {

     font-family: Arial, Helvetica, sans-serif;

     font-size: 11px;

    }

    .style4 {

     font-family: Arial, Helvetica, sans-serif;

     font-size: 15px;

     font-weight: Normal;

     color: #333333;

    }

    .Username {

     font-family: Arial, Helvetica, sans-serif;

     font-size: 13px;

     font-weight: Bold;

     color: #333333;

    }

    .subject {

     font-family: Arial, Helvetica, sans-serif;

     font-size: 13px;

     font-weight: Bold;

     color: #333333;

    }

    .style8 {

     color: #FF3300;

     font-weight: bold;

    }

    .style9 {font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: bold; }

    -->

    </style>

    </head>


    <body>

    <table width="700" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">

    <tr>

    <td valign="top"><table width="100%" border="0" cellpadding="5" bgcolor="#FFFFFF">

     

    <tr>

    <td><span class="Username"><%#locSalutation%>&nbsp;<strong><%#ActorName%></strong> </span>,

    <p class="style2"><%#locMailDescription%></p></td></tr>

     

    <tr>

    <td bgcolor="#FFFFFF" class="style2"><%#Notes%> </td>

    </tr>  

    <tr>

    <td bgcolor="#EBEBEB" class="style4"><%#locResponseOptions%></td>

    </tr>

    <tr>

    <td>

    <table width="100%" border="1" cellpadding="6" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF" class="style2">

     <tr width="21%" bgcolor="#EFEFEF">

     <td>

     <b>Employee Age</b></td>

     <td width="79%" bgcolor="#EFEFEF">

    <%#Content.EmployeeAge%></td>

    </tr>

    </table>

    </td>

    </tr>

    <tr>

    <td>

    <table width="100%" border="0" cellpadding="4" cellspacing="0" class="style2">

    <tr>

    <td><a <%#workitemView%>><%#locRespondByWeb%></a></td>

    </tr>

    <tr>

    <td><a <%#docview%>><%#locDocViewURLText%></a></td>

    </tr>

    <tr>

    <td ><a <%#executionView%>><%#locExecutionViewURLText%></a></td>

    </tr>

    </table>

    </td>

    </tr>

    <tr>

    <td bgcolor="#EBEBEB" class="style4" style="height:10%"></td>

    </tr>

    <tr>

    <td bgcolor="#FFFFFF" class="style2"><%#locSignature%></td>

    </tr>

    </table>

    </td>

    </tr>

    </table>

    </body>

    </html>

  3. The actor will get the mail in the defined format for the above template.

    TitleResults for “How to create a CRG?”Also Available in