Forum Discussion
@wpenfold It is certainly possible to both use the table data, and a set of other fields in the email template.
I have an email sender which uses $group for the table, and then goes on to use a set of other fields (my summary data) in a footer. Those other fields are at the root level in my input document.
Hi @bcole , Lets assume the documents array you save as documents_array variable. Then you can use below expression in next snap and if you want can make target field as $.(if you want to pass other data then don’t use $)
{
“Document”:{
“Documents”: sl.ensureArray($documents_array)
}
}If you want to avoid extra mapper, then your can use below
{
“Document”:{
“Documents”: sl.ensureArray(your logic to get documents)
}
}