I can set the `externalid` field on a record using...
# suitescript
m
I can set the
externalid
field on a record using SuiteScript, but it doesn’t seem that I can clear that field with SuiteScript. Is there a way to clear the
externalid
field?
s
i'm pretty sure this id do-able beyond documentation (just can't be set if the before submit context) i'd try '' then null; but this is fairly do-able
m
My script is running in the after submit context, but both null and empty string don’t seem to do anything. I’ve tried using
submitFields
and
load
,
setValue
,
save
.
s
you're right even by csv import i can't "Nullify it" only update it with a new value
i also tried file upload -> N/file, -> N/task submit, no luck there unless i did it wrong
m
Thanks for trying!
m
Thanks for that article. It’s weird, that’s a recently dated article. I copied his script into a MU script verbatim and it does not clear out the external ID field for me.
b
ive never known external id to be nullable
t
I had saved this to try because I had always been told it wasn't nullable, only able to set it to '' but Prolecto usually knows what they are doing :)