For example I made a process where I send an email that already has an html template and replace the input with a dictionary with data to be sent. But when it is sent my table that is in the template gets ";" over the table as I'm going to show you here.
The process basically uses an expression rule to bring the data and it brings like this:
Someone knows why he put the ";"
Discussion posts and replies are publicly visible
Hi Tiago,
Can you please let us know how send email node is configured? Are you displaying any data above your table in the Email (HTML) template ?
I dont have more data than this : , and the node i just have : =
a!forEach( items: rule!P2P_sandBoxTiago(), expression: "<tr>" & "<td>" & fv!item.processId & "</td>" & "<td>" & fv!item.typeOfRequest & "</td>" & "<td>" & fv!item.requester & "</td>" & "<td>" & fv!item.createdOn & "</td>" & "<td>" & fv!item.description & "</td>" & "<td>" & fv!item.type & "</td>" & "</tr>")
Mike's suggestion is correct here, you will want to joinarray() around the forEach() building your HTML for the email.
joinarray( a!forEach( items: rule!P2P_sandBoxTiago(), expression: "<tr>" & "<td>" & fv!item.processId & "</td>" & "<td>" & fv!item.typeOfRequest & "</td>" & "<td>" & fv!item.requester & "</td>" & "<td>" & fv!item.createdOn & "</td>" & "<td>" & fv!item.description & "</td>" & "<td>" & fv!item.type & "</td>" & "</tr>" ), "" )
Thanks! It worked