Hello, When creating a customer record via SuiteSc...
# suitescript
v
Hello, When creating a customer record via SuiteScript (2), if we choose a customer name that already exists in netsuite, we get this error:
A customer record with this ID already exists. You must enter a unique customer ID for each record you create.
How do we force SuiteScript to automatically use a unique ID in such cases (ex: “John Doe 2”).
n
While creating the customer, search if this name already exist. if found, use another name. Otherwise, use the current name.
v
Okay 👍 So unlike customer creation via UI, where the system automatically appends a number in front of a customer’s name (ID) when it finds a duplicate entry, you have to manually do it in SuiteScript?
n
Before that, try creating in Dynamic Mode.
v
I did try that, it did not work though.
b