Convert Html code in expression rule

Certified Senior Developer

Hi Team,

I am trying to convert html code in my email template to dynamic so i can loop some values using expression rule but i facing some issue in syntax , Looking for the help

below is the html code

<!DOCTYPE html>
<html>
<body>
<head>
<link rel="stylesheet" href="styles.css">
</head>

<h2>###bodytext###</h2>

<br>
<br>
<h2>Please click on any below link to submit you response</h2>

<a href="mailto:processmodeluuid0002e98e-199e-8000-273d-7f0000014e7a@cscswdev.appiancloud.com?subject=###resultId###&body=Please don't edit subject and To-email Address, Please add your comments below">Complete</a>
<br></br>
<a href="mailto:processmodeluuid0002e98e-199e-8000-273d-7f0000014e7a@cscswdev.appiancloud.com?subject=###resultId###&body=Please don't edit subject and To-email Address, Please add your comments below">Cancel</a>

<br>
<br>
<a href="mailto:processmodeluuid0002e98e-199e-8000-273d-7f0000014e7a@cscswdev.appiancloud.com?subject=###resultId###&body=Please don't edit subject and To-email Address, Please add your comments below">Comments</a>


</body>
</html>

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Stefan Helzle

    stefan, able to generate the template, the only issue is when i click on toemail link , i was not able to populate the body, can you help over that

    =concat(

    "<html>",
    "<body>",


    "<h2>" & pv!GBL_VW_RevenueRecoveryResult.bodytext & "</h2>",

    "<br/>",
    "<br/>",
    "<h2>Please click on any below link to submit you response</h2>",


    a!forEach(
    items: split(pv!GBL_VW_RevenueRecoveryResult.linktext,","),
    expression:
    concat(
    "<a href =",

    "mailto:processmodeluuid0002e98e-199e-8000-273d-7f0000014e7a@cscswdev.appiancloud.com?subject=",
    pv!GBL_VW_RevenueRecoveryResult.actionresultid ,
    "&body= Please dont edit subject and To-email Address, Please add your comments below>" ,


    fv!item ,
    "</a >",
    "<br/>",
    "<br/>"
    )

    ) ,


    "</body>",
    "</html>")

    i need to show user in email body Please dont edit subject and To-email Address, Please add your comments below when they click

Children