John Cusick
11/02/2024, 12:17 AMCeligo AI
11/02/2024, 12:17 AMAI generated answer (using internal Slack threads):Based on the conversations, it seems that you are trying to access the
mainaddress_text field of a subsidiary from an invoice record in an Advanced PDF template. However, you are encountering an error stating that the field 'subsidiary.mainaddress_text' is not found.
The issue here is that the mainaddress_text field is not directly accessible from the subsidiary record in the context of an Advanced PDF template. The Advanced PDF templates in NetSuite have a specific set of fields that are available for use, and mainaddress_text is not one of them.
To get around this, you can create a custom field on the invoice record that sources its value from the mainaddress_text field of the subsidiary. This custom field will then be available for use in your Advanced PDF template. Here's how you can do it:
1. Navigate to Customization > Lists, Records, & Fields > Transaction Body Fields > New.
2. Set the label and ID for your custom field.
3. In the Store Value section, select No.
4. In the Sourcing & Filtering section, select Subsidiary as the source list and Main Address Text as the source from.
5. Save the custom field.
Now, you can use this custom field in your Advanced PDF template like so:
html
<p><span class="address">${record.custbody_your_custom_field_id}</span></p>
Replace custbody_your_custom_field_id with the actual ID of your custom field.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
11/02/2024, 12:17 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.864541352
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851896405
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848734558
Celigo AI
11/02/2024, 12:17 AM