TIL that this does not work; I had been assuming i...
# suitescript
e
TIL that this does not work; I had been assuming it would:
Copy code
// Calling redirect.toRecord with no record ID should automatically assume CREATE
redirect.toRecord({
  type: r.Type.SALES_ORDER,
  parameters: { "cf": 139 }
});
j
@erictgrubaugh I can't verify this right now, but if my memory serves providing the empty string for the record ID has worked for me in the past.
Copy code
redirect.toRecord({
  type: r.Type.SALES_ORDER,
  id: '', // empty string
  paramters: ...
});
✔️ 1
👍🏼 1
e
orly? I will try that
@jkabot Works perfectly; awesome! Thanks!
🌈 The more you know
j
leave it to netsuite to have completely incorrect documentation ¯\_(ツ)_/¯