JC
12/14/2020, 7:18 PMCustomer
record from a transaction script?
var customer = record.load({
type: record.Type.CUSTOMER,
id: customerId,
isDynamic: true
});
is this correct?Sandii
12/14/2020, 7:24 PMSandii
12/14/2020, 7:25 PMtransaction script
is kind of vagueJC
12/14/2020, 7:28 PMSandii
12/14/2020, 7:35 PMsearch.lookupFields()
, there is usually no need to load the record unless you intend to do something to it.erictgrubaugh
12/14/2020, 7:37 PMentity
) and retrieve its value (which will be the internal ID of the entity
3. Use the id to perform a lookup
to retrieve the appropriate values, using the Search Columns for a Customer as a reference: https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2020_1/script/record/customer.html
Video walkthrough:
Article walkthrough: https://stoic.software/effective-suitescript/7-field-lookups-in-ss2/
1.JC
12/14/2020, 7:43 PM