Table/(Grid with read only data) with coloring in email notification

Can some suggest what is the best way to display a tabular data with coloring on rows in email body via a notification ?

Currently using ncolumntable() for table formation and used default html template in send email smart service for email body.

As the current requirement is to show the data in rows different color based on one of the column data (have some validations ) .I have tried using Ncoulmnstyledtable) , its not working .

Appian version is 16.3.

  Discussion posts and replies are publicly visible

Parents
  • Hi ,
    I have a requirement to display legend tags with color boxes outlined with black border.
    I am able to display successfully in browser , but the same is not visible in email notification.
    "This message was sent by the Appian - PRTRR (Request to Retain or Retire) process.<br/><br/>" &
    if(rule!APN_isBlank(ri!group_txt),
    if(
    rule!APN_isBlank(ri!district_txt),
    "AMU: " & ri!AMU_txt,
    "District: " & ri!district_txt
    ),
    "Group: " & ri!group_txt
    )
    & "<br/><br/>" & if(
    rule!APN_isEmpty(
    ri!PRTRR_PipelineList
    ),
    {},
    "<br/><br/>Please review the following list of pipelines requiring attention. A decision must be made on each pipeline outlined in the table below.<br/><br/>"
    &regexreplaceall("<tr bgcolor='red'><td></td><td></td><td></td><td></td><td></td><td></td><td>0</td></tr>",regexreplaceall(";",rule!PRTRR_createEmailSectionRequireAttention(PRTRR_PipelineList: ri!PRTRR_PipelineList),""),"")
    &"<style>.foo {float: left;width: 20px;height: 20px;margin: 5px;border: 1px solid black;}.red {background: 'red';}.orange {background: 'orange';}.yellow {background: 'yellow';}</style>"
    &"<div class='foo red'></div><font>Non-Compliant Pipelines</font></br></br>"&
    "<div class='foo orange'></div><font>Non-Compliance Imminent</font></br></br>"&
    "<div class='foo yellow'></div><font>Inactive Lines Requiring a Decision</font>"
    )

    not sure about the issue..
    And I am able to execute it with proper color while executing rule.
Reply
  • Hi ,
    I have a requirement to display legend tags with color boxes outlined with black border.
    I am able to display successfully in browser , but the same is not visible in email notification.
    "This message was sent by the Appian - PRTRR (Request to Retain or Retire) process.<br/><br/>" &
    if(rule!APN_isBlank(ri!group_txt),
    if(
    rule!APN_isBlank(ri!district_txt),
    "AMU: " & ri!AMU_txt,
    "District: " & ri!district_txt
    ),
    "Group: " & ri!group_txt
    )
    & "<br/><br/>" & if(
    rule!APN_isEmpty(
    ri!PRTRR_PipelineList
    ),
    {},
    "<br/><br/>Please review the following list of pipelines requiring attention. A decision must be made on each pipeline outlined in the table below.<br/><br/>"
    &regexreplaceall("<tr bgcolor='red'><td></td><td></td><td></td><td></td><td></td><td></td><td>0</td></tr>",regexreplaceall(";",rule!PRTRR_createEmailSectionRequireAttention(PRTRR_PipelineList: ri!PRTRR_PipelineList),""),"")
    &"<style>.foo {float: left;width: 20px;height: 20px;margin: 5px;border: 1px solid black;}.red {background: 'red';}.orange {background: 'orange';}.yellow {background: 'yellow';}</style>"
    &"<div class='foo red'></div><font>Non-Compliant Pipelines</font></br></br>"&
    "<div class='foo orange'></div><font>Non-Compliance Imminent</font></br></br>"&
    "<div class='foo yellow'></div><font>Inactive Lines Requiring a Decision</font>"
    )

    not sure about the issue..
    And I am able to execute it with proper color while executing rule.
Children
No Data