Avatar

Level 2

Hi there! 

I have been puzzling a bit with how much it is possible to personalise emails. It seems that apparantly you can "only" use recipipient specific 1st level data to insert dynamic and personalised content.  

I was wondering if it is possible to somehow insert other data from tables that may contain more than 1 row per recipient. 

Use-case:
I want to insert a voucher code into an email. There can be multiple vouchers related to the recipient but I want to sort decending on the most recent and unused voucher and insert that one. 

Currently we are setting that voucher in the workflow as targetData.voucher BUT that seems like a lot of work since I am unable to send proofs when it is related to target data. Therefore I am looking to insert it directly when editing the email delivery. 


Maybe it is possible with javascript somehow?