Hi All, is it possible to set externalid with suit...
# suitescript
x
Hi All, is it possible to set externalid with suitescript 2.1 in en user event script? The following code does not work. newRecord.setValue({ fieldId: 'externalid', value: '123', ignoreFieldChange: true });
🙌 1
b
not in the before submit
you can do if after submit, but that will cost you performancewise
x
Thanks. If not do it in user event script, is there a better solution to set externalid?
b
what are you using it for
x
when a record is created/edited, i want externalid is set automatically according to some custom field.
b
is anything using the external id
x
yes
b
you should probably let that thing set the external id
x
you mean at the moment when that thing is using externalid?
But if e.g. en workflow is using externalid?
b
and how is it using the external id, why arent you using your custom field
external id is supposed to be used by things outside netsuite
you pay when you try doing otherwise
x
When externalid is used by outside system, how should externalid set at that moment then?
b
apis that create records allow setting the external id
so whatever is creating the record controls setting the external id
x
From example?
For example
b
the rest example is Using External IDs
x
Thanks a lot for your help 🙂