Nor the customer ID (aka entityid), this one doesn...
# suitescript
d
Nor the customer ID (aka entityid), this one doesn't even get set on update. For note, the attribute names are being set as
Copy code
record.setValue("externalid", "113f7211-f504-4265-8a99-715436b1e131");
record.setValue("entity", "113f7211-f504-4265-8a99-715436b1e131");
b
entityid vs entity
though thats the field on the customer
you also cannot use externalid as an alternative to internalid in suitescript
d
NS is a bit inconsistent with it's documentation here I guess. I've found that customform works over customformid, terms over termsid, subsidiary over subsidiaryid. are you sure it's entityid?
entityId in this instance just needs to be updated to used as a visual reference, it will be the same as externalid
b
entityid is not a field on the invoice, its a field on the customer
the entity field on an invoice is a select field which you either set using the internal id when using setValue, or the name when using setText
👍 1
d
entityid is not a field on the invoice, its a field on the customer
Absolutely - I wrongly wrote invoice when I meant customer. Edited now.
b
then you want the entityid field
d
thanks you. any idea what's up with the behaviour of the externalid?
b
not without seeing more code, external id can be set from suitescript on create