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 Pages / Primary Key Dataverse
Power Pages
Answered

Primary Key Dataverse

(0) ShareShare
ReportReport
Posted on by 5

Hi all,

 

I want to ask is the primary key / unique field identifier in dataverse is autogenerated by system as guid type and I cannot decide which field/column is the primary key? Because previously I tried to create new table, and then set "Name" as Primary Column, I though that "Name" would be the primary key, but then I try to put the same value when create record, it can inserted. Is anyway I can prevent duplicate "Name"?

RobbyG_0-1692941311879.png

 

Thanks.

 

Categories:
I have the same question (0)
  • Lucas001 Profile Picture
    2,529 Super User 2026 Season 1 on at

    Hi @RobbyG

     

    the name column is always created once you create a table. This column is also referred to when you chose a lookup column. You can mark the column as optional if you don't want to set it or use it. You can also rename it, but keep in mind the schema name will always be "name". 

     

    The primary key of the column is stored in the column "tablename_id". This is the GUID of your row and always specific to that row.

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

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

  • RobbyG Profile Picture
    5 on at

    Hi @Lucas001

     

    Thanks for your explanation. So, the primary key of dataverse always be the GUID field only and I cannot add / change it right?

  • Verified answer
    ragavanrajan Profile Picture
    7,044 Most Valuable Professional on at

    Hey @RobbyG 

    Unlike other databases, dataverse is cleverly designed to create one-to-many and many-to-many relationships. I.e. As @Lucas001  mentioned Table Guid is unique. The good news is that you want another column to act like a primary key. It is possible with the concept called "Alternate Keys" 

    Alternate key can be used to uniquely identify a row in Dataverse in place of the primary key.

     

    Official URL for reference

     

    Hope it helps.
    ------------

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

     

     

     

     

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 Pages

#1
DP_Prabh Profile Picture

DP_Prabh 51

#2
rezarizvii Profile Picture

rezarizvii 35

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 29 Most Valuable Professional

Last 30 days Overall leaderboard