does anybody know if it is possible to add the com...
# suitescript
t
does anybody know if it is possible to add the company_information section to a custom pdf render.
Copy code
renderer.addRecord({
    templateName: 'companyinformation',
    record: record.load({
      type: record.Type.COMPANY_INFORMATION,
      id: WHATGOESHERE
    })
});
m
Did you try N/config? You might need to use a custom data source though
Actually it returns a Record object so maybe it would work like that 🤔
Copy code
renderer.addRecord({
    templateName: 'companyinformation',
    record: config.load({
      type: config.Type.COMPANY_INFORMATION,
    })
});
t
thank michoel I will try now
IT WORKED!!!!! thank michoel