web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Prinamry name column
Power Apps
Unanswered

Prinamry name column

(0) ShareShare
ReportReport
Posted on by 180

Hello,

 

How to ensure uniqueness of primary column, and it should be not be empty?

 

Thanks 

I have the same question (0)
  • Ami K Profile Picture
    15,687 Super User 2024 Season 1 on at

    Although the default data type for the Primary Name column is Single Line Text and this cannot be changed on the initial set up of the Table, after you save the table, you can edit the Primary Name column and change it to an Auto-Number column. This will ensure the column remains unique, and not empty.

     

    You can also look into setting up Duplicate Detection Rules and Alternate Keys, but I found the above to be the simplest solution.

     

    https://learn.microsoft.com/en-us/power-platform/admin/set-up-duplicate-detection-rules-keep-data-clean 

     

    ------------------------------------------------------------------------------------------------------------------------------

     

    If I have answered your question, please mark your post as Solved.

    If you like my response, please give it a Thumbs Up.

  • Fubar Profile Picture
    8,487 Super User 2026 Season 1 on at

    Unique value: create an Alternate Key (still allows nulls) and set it to the Primary Column name https://learn.microsoft.com/en-us/power-apps/maker/data-platform/define-alternate-keys-portal#create-an-alternate-key

     

    The Not null part: at the basic level make it business required (its default, but can be changed), to stop workarounds like importing it you can create a server side Business Rule or realtime Workflow to check if it does not contain data and error the rule or stop the workflow as cancelled.

     

    If you just need a value to be populated you could set it to autonumber, but note this does not guarantee uniqueness, as the autonumber can be 're-seeded' to a lower number than the last used, and the field can be edited or imported into with a duplicate (Alternate Keys is the only way to guarantee unique values).

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard