Can we dynamically pull subsidiary information, ba...
# advancedpdf
c
Can we dynamically pull subsidiary information, based on the invoice record? SA seems to want me to create an if statement for each. https://netsuite.custhelp.com/app/answers/detail/a_id/85603/kw/subsidiary%20pdf/related/1
a
I've done this, but I've found that the native subsidiary fields aren't available, so you usually have to create custom fields to reference them, and then pull those in.
They don't have to store the value though I'm pretty sure.
although looking closer, i think i'm also pulling them into non-stored transaction body fields?
oh no - i am grabbing them right from
${record.subsidiary}
some do work though, such as
${record.subsidiary.legalname}
c
Would it be dynamic based on sub on record? SA makes it seem like its not so
a
Yes
s
@Clint and @al3xicon
{record.subsidiary.field}
DOES NOT WORK But you CAN use
${subsidiary.customfield}
and
${subsidiary.nativefield}
This does work based on the subsidiary of the invoice.. I used it yesterday to get
${subsidiary.mainaddress_text}
. The trick is that it’s not joined from the Record… it’s a separate join.. The SuiteBuilder Advanced Templates Reference Guide for Invoices calls it out.. but at first I had used ‘record.’ and then realized it’s a join of the subsidiary, and not the record.
❤️ 1
a
Odd, I have a working PDF using record.subsidiary.field...