How can we display the task link in the email notification

Hi,

I want to generate an individual task link - using that task link users can able to complete their tasks.

My scenario is,

Using an expression rule, I have created a dynamic table by using HTML code in the rule. the code as follows.

Code:

a!localVariables(
local!taskData: rule!HD_getTaskDetailsByAssignee(activestatus:1, assignee:ri!assignee).data,
joinarray(
append(
{
/*"<table border=1>*/
"<table style=""width:700px;"" border=""1"">
<tbody>
<tr>
<td><strong>Legal Entity Name</strong></td>
<td><strong>Legal Entity ID</strong></td>
<td><strong>Line Of Business</strong></td>
<td><strong>Reporting Type</strong></td>
<td><strong>Task Name</strong></td>
<td><strong>Task due date</strong></td>
<td><strong>Task generated date</strong></td>
<td style=""width: 100px;""><strong>Task Link</strong></td>

</tr>"
},
{
a!forEach(
items: local!taskData,
expression: {
concat(
"<tr>
<td>",
fv!item.c38,
"</td>
<td>",
fv!item.c35,
"</td>
<td>",
fv!item.c39,
"</td>
<td>",
fv!item.c36,
"</td>
<td>",
fv!item.c51,
"</td>
<td>",
fv!item.c47,
"</td>
<td>",
fv!item.c50,
"</td>
<td><a href='",

cons!CCAR_ENV_USER_TASK_LIST_URL,
"'>",
"Task Link",
"</a></td>
</tr>"
)
}
),
"</table>"
},
"<br> </br>",
rule!HSBC_UT_htmlCreateLink(
url: cons!CCAR_ENV_USER_TASK_LIST_URL,
label: " Click Here to Navigate to My Tasks"
),

)
)
)

Email body which I'm getting:

for time being i have created a constant which contains a generic temp task link init. but i need to keep the individual task link (highlighted in the above screenshot) for each task.

In simple words, Instead of passing a generic tempo task link through a constant CCAR_ENV_USER_TASK_LIST_URL. I want to generate a individual task link.

How can i achieve this.

  Discussion posts and replies are publicly visible