IS_UNIQUE_NAME¶
Description¶
IS_UNIQUE_NAME checks whether a given name does not already exist as a valid instance of a specified type on the platform. It returns true if the name is unique (i.e. no active instance with that name exists), and false otherwise.
This is useful for validation rules that enforce uniqueness of instance names.
Example¶
This returns true if no active Company instance with the name stored in p.company_name exists on the platform.