Edit

SuggestNameCode (Name)

Result Type: text

Definition: Given a customer/supplier Name, returns the next available name code in the sequence. The code is constructed according to the "Code assignment for new names" settings in the Terms Preferences. This function is intended to facilitate importing.

Example:  SuggestNameCode("Smith and Brown)

Returns for example SMI00.

Note:  As a new code is returned regardless of whether the customer/supplier name exists or not, it is up to you to determine that this is in fact a new customer/supplier. You can use the Find() function to achieve this.