Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
How to leverage Record Type / Transaction Type fields from scripts?
I'm trying to build a custom record that describes how to pull multiple record types together for generating documents. That is, I'm using TemplateRenderer.addRecord() to accumulate what I need passed to a template. Fairly simple, or so I thought.
I tried using a Record Type field to determine the type of the record and, in some cases, get the scriptid for use as the type with record.load(), but that appears limited to custom records, as other types I've tried just give an empty string. I mostly care about transactions, though, so for now I thought I would try using a Transaction Type field, but trying to pull a scriptid causes an error, and I can't seem to pull any joined data whatsoever. As it stands, the best I can do is apparently creating a Free-Form Text field to store the record type for loading, but this is sub-optimal. I'm left wondering about the usefulness of Record Type & Transaction Type fields.