Custom Objects - Unique Fields Support

Modified on: Wed, 15 Oct, 2025 at 11:26 AM

The Unique Fields feature allows you to ensure that specific field values remain unique across all records within a Custom Object. This helps maintain data integrity, prevent duplication, and ensure that identifiers such as IDs or reference numbers are never reused accidentally. This article shows how to use unique fields in custom objects.


Note: This feature is currently in Labs and needs to be enabled by Agency for Sub-accounts.

TABLE OF CONTENTS


What is Unique Fields for Custom Objects?


Unique Fields is a data-integrity setting that you can enable on selected custom-object fields. When a field is flagged as unique, HighLevel checks every new or updated record and blocks any value that already exists anywhere in the sub-account. This ensures every custom-object record stays truly unique and eliminates messy deduplication projects down the road. 


Key Benefits of Unique Fields


  • Stop duplicates: Enforce unique fields at create/update so repeats are blocked across UI, forms, workflows, imports, and API.

  • Accurate reporting: Preserve true one-to-one relationships so dashboards, attribution, and metrics stay trustworthy.

  • Safe automations: Protect bulk imports and workflow actions from accidental double-creates with built-in pre-checks.

  • Future-ready: Establish the foundation for upcoming advanced deduplication and merge tools.

Rules, Limits & Field Support


  • Mark custom fields as unique during creation.

  • Limit of 10 unique fields per object (applies across the subaccount).

  • Enforced across all record creation methods — UI, Workflows, Forms, and APIs.

  • Supported field types:

    • Single Line Text

    • Multi Line Text

    • Number

    • Phone

  • Allows downgrading a unique field to non-unique (irreversible action).


How to Mark a Field as Unique in Custom Objects


Note: Once saved, this setting applies across all records within the subaccount and cannot be re-enabled once turned off.


Option 1: While Creating a New Custom Field


  1. Navigate to Settings.



  2. Click on Custom Fields.

  3. Click + Add Field.



  4. Select a supported field type (Single Line, Multi Line, Number, or Phone).

  5. Enter the field name, object, and group.

  6. Check the box for Mark Field as Unique.

  7. Click Save.



Option 2: Marking a Primary Field as Unique While Creating Custom Object


  1. Go to Settings.



  2. Click on Objects.

  3. Click on + Add Custom Object.



  4. Define the Custom Object Name and Primary Display Field.

  5. Check Mark Primary Field as Unique.

  6. Click Create Custom Object.

  7. This ensures the primary field (for example, Case No. or VIN Number) cannot have duplicates.


How to Modify Unique Fields  


Note: Once downgraded from unique to non-unique, it cannot be made unique again.


  1. Go to Settings > Custom Fields.

  2. Find or Search the Unique Custom Field.

  3. Select the Field.

  4. Click on Bulk Actions > Edit.

  5. Deselect Mark Field as Unique option.



Example Scenarios


ScenarioActionResult
Two records have the same value in a Primary fieldUser savesError: “A record with the same value already exists.”
Two records with the same value in a non-primary unique fieldUser savesPartial success – duplicate rows skipped with warnings
Field marked as unique, then user attempts deletionDeleteWarning – field cannot be deleted
Unique field downgraded to non-uniqueUser savesAllowed, but irreversible
API used to update with duplicate valueUpdate callAPI returns validation error

Best Practices


  • Use unique fields for identifiers or keys (for example, Patient ID, Case No., Employee Code).

  • Avoid marking frequently updated text fields as unique.

  • Before imports, deduplicate data externally to prevent import warnings or skips.

  • Plan field uniqueness early — re-enabling unique later is not supported.


Frequently Asked Questions


Q: Does uniqueness apply account-wide?

Yes. Uniqueness is enforced globally across the sub-account.


Q: Is the check applied on updates as well as creates?

Yes. Create and update actions are both blocked if the unique value already exists.


Q: What error do users see on a duplicate?

You’ll see a message like: “A record with the same value for <fieldName> already exists.”


Q: Where is uniqueness enforced?

Across all entry points: manual record creation, workflows/automations, and forms.


Q: Can I mark a dropdown or email field as unique?

Only Single Line, Multi Line, Number, and Phone fields are supported in this release.


Q: What happens during a CSV import if duplicates exist?

The import finishes, but rows with duplicate unique-field values fail. 


Q: Do uniqueness checks slow down API bulk inserts?

No. The validation is optimized at the database layer, so performance impact is negligible even for large batches.


Q: Can two sub-accounts have the same value in a unique field?

Yes. Uniqueness is enforced per sub-account, not across the entire agency.



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article