Shouldn't this set the `externalid` to `Darren`? ...
# suitescript
d
Shouldn't this set the
externalid
to
Darren
? Why wouldn't this simply work?
d
I’ve only used external id in an import csv context, is it available to SuiteScript to set?
e
Is line 2 logging?
m
I believe you can only set externalid in afterSubmit
👍 2
p
Is there a COPY type too? I forget
a
Also externalid is not available for all record types.
d
@michoel, you could be on to something (although it doesn't make sense to me. One of the reasons I use externalid is to force a 'duplicate' error from NetSuite). I'm going to move this logic to the beforeLoad first ... I'll report back.
s
@darrenhillconsulting there is a suiteanswer that explicitly tell you externalid is read-only on beforesubmit, and it's a enhancement request; then the workaround would be doing the manipulation on afterSubmit! 🎉 https://netsuite.custhelp.com/app/answers/detail/a_id/79658/kw/externalid
d
Thanks for this @Sciuridae54696d
keanu thanks 1