hi, can any one help with this advance PDF/render....
# general
l
hi, can any one help with this advance PDF/render.mergeEmail issue i got?
Copy code
let margeResults = render.mergeEmail({
        templateId: '7',
        entity:{
            type: 'vendor',
            id:  parseInt(vendorBankId)
        },
        recipient: null,
        supportCaseId: null,
        transactionId: null,
        customRecord: {
            type: 'customrecord_ilo_vendor_bank',
            id: parseInt(ilVendorBankId)
        }
})
_<#if (customrecord_ilo_vendor_bank.custrecord_ilo_bank_account_name)??>_ <tr> <td>Updated bank account name</td> _<td>${customrecord_ilo_vendor_bank.custrecord_ilo_bank_account_name}</td>_ </tr> #else</#if> I cant get the values from this field "custrecord_ilo_bank_account_name" in the margeResults.body from a custom list related to vendor
t
try record.custrecord_ilo_bank_account_name
or record.vendor. etc
l
tried both got into the else section:
Copy code
<#if (record.vendor.customrecord_ilo_vendor_bank.custrecord_ilo_bank_account_name)??>
<tr>
<td>Updated bank account name</td>
<td>${record.vendor.customrecord_ilo_vendor_bank.custrecord_ilo_bank_account_name}</td>
</tr>
<#else><tr>
<td>Updated bank account name</td>
<td>help</td>
</tr></#if>
<#if (record.customrecord_ilo_vendor_bank.custrecord_ilo_bank_details_account)??>
<tr>
<td>Updated bank account number</td>
<td>${record.customrecord_ilo_vendor_bank.custrecord_ilo_bank_details_account}</td>
</tr>
<#else><tr>
<td>Updated bank account number</td>
<td>me</td>
</tr></#if>
t
so it's working or?
l
Hi Tristan, unfortunately no it's not... :(
I just created another hidden field in the vendor list and pulled the data from there, but i was really hooping on getting my data from the custom list