Alex Pilgun
11/01/2023, 2:55 PMMatt Carter
11/01/2023, 4:22 PMEric B
11/01/2023, 5:08 PMAlex Pilgun
11/01/2023, 7:05 PM<orderstatus>A</orderstatus>
<status>Pending Approval</status>
<statusRef>pendingApproval</statusRef>
but those fields seem to be read-only for for every edit method except UI hard-coded buttons.
I have a working script which changes the status (e.g. for Sales Order from Pending Approval => Pending Fulfillment).
var transactionRecord = record.load(...)
transactionRecord.setValue({fieldId:'orderstatus',value: 'B'});
transactionRecord.save();
when I try to do the same for VRA this logic is completely skipped w/o any error.
I tried any field<>value combinations for orderstatus, status, statusRef fields
Also tried setting them all together, one by one.
btw when I try to use the same script for cancelling SO (set orderstatus = C) then I get
You have entered an Invalid Field Value C for the following field: orderstatus
that's why I suspect NetSuite might have implementation differences between different transaction types.Alex Pilgun
11/01/2023, 7:08 PMMatt Carter
11/01/2023, 7:43 PMMatt Carter
11/01/2023, 7:46 PMEric B
11/01/2023, 7:59 PMAlex Pilgun
11/01/2023, 10:32 PMNElliott
11/02/2023, 8:34 AMAlex Pilgun
11/02/2023, 7:49 PMNElliott
11/07/2023, 8:58 AM