ANS-1308 · PRINTING, PDF & EMAIL TEMPLATES

How to Display Custom Entity Fields on NetSuite Advanced PDF/HTML Templates?

Learn the direct method for referencing custom entity fields associated with a transaction's entity on Advanced PDF/HTML templates in NetSuite.

Short answer

To display a custom entity field on an Advanced PDF/HTML template in NetSuite, directly reference it using the syntax `${record.entity.custentityXXX}`. This method allows the template to pull data from custom fields defined on the associated customer, vendor, or employee record linked to the transaction, ensuring accurate data presentation.

Scenario

NetSuite users often need to include custom fields from an associated entity (such as a customer, vendor, or employee) directly onto transaction-based Advanced PDF/HTML templates. The challenge lies in correctly referencing these custom entity fields within the template's FreeMarker syntax to ensure they display accurately on printed forms.

Solution

To successfully retrieve and display a custom entity field on an Advanced PDF/HTML template, use the following FreeMarker syntax to access the field from the transaction's associated entity record:

${record.entity.custentity111}

Replace custentity111 with the actual ID of your custom entity field. This syntax directly accesses the entity record linked to the transaction and then retrieves the specified custom field's value, ensuring it appears on the generated PDF.

Expert NetSuite Support

Need help with this NetSuite issue?

Printing, PDF & Email Templates consulting and configuration support

Talk to a consultant