Hi, I am creating dunning email template. I want to give subject in email template like Invoice L1: [INVOICE #] . need to access invoice number. But using ${transaction.tranid} ..it is not working
r
ryanhowson
06/19/2020, 10:49 AM
${transaction.tranID} works in our instance, may be a long shot, but ID may need to be capitalised
n
NElliott
06/19/2020, 10:49 AM
Couple things to check (may be obvious).
1. transaction is your record object?
2. The record you're looking at definitely has a tranid?
I'm afraid I'm not able to offer anything else right now, maybe someone else will know better.
t
Tanu
06/19/2020, 10:52 AM
@ryanhowson In case of dunning xml email template I am not able to access it using transaction object. as in case of dunning email templates used for custom records
n
NElliott
06/19/2020, 11:10 AM
are you saying you do not have the transaction object? If not, which object represents your record?
a
amy
06/19/2020, 2:45 PM
dunning has limitations on what fields it makes available and its own naming conventions for what they are called. mine has "invoice.tranid", though that's for customer-level dunning; if you have invoice-level dunning, your syntax might be different.