why in Advanced PDF/HTML Template ${companyinform...
# ask-stanley-ai
i
why in Advanced PDF/HTML Template ${companyinformation.mainaddress.city} returns an error but ${subsidiary.mainaddress.city} works
c
AI generated answer (using internal Slack threads):
The error you're encountering is due to the fact that
${companyinformation.mainaddress.city}
is not a valid field in the context of Advanced PDF/HTML Templates in NetSuite. The
companyinformation
object does not have a
mainaddress
field, hence the error. On the other hand,
${subsidiary.mainaddress.city}
works because
subsidiary
is a field on the transaction record, and
mainaddress
is a field on the subsidiary record. Therefore, this field reference is valid and can be used to access the city of the subsidiary's main address. In order to display the company's main address city, you would need to create a custom field on the company record, source the value from the company's main address, and then reference this custom field in your Advanced PDF/HTML Template. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.845779598
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831659198
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.817775786
Please provide your feedback on this answer.