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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / What is a primary column?
Power Apps
Unanswered

What is a primary column?

(0) ShareShare
ReportReport
Posted on by 9

I was trying to import data from excel into a table, and when I created a custom table which would be a table for applicants. For the primary column I named it Applicant Name. I am a little confused on what the primary column is for, Is it like an id in SQL? In the table I included fields for first name and last name. Should I get rid of those, and just use the names in the applicant name field when I import? 

I have the same question (0)
  • Verified answer
    Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @cb_biggs ,

     

    There is a "Primary Name" column in most tables in Dataverse.  This Primary Name column is used in all list views to click through (hyperlink) and get to the record's form.  Whenever you add a lookup from one table to another table (i.e. a N:1) it shows this as the reference to that other record.  The value in this column does not need to be unique because there is still a unique GUID behind the scenes when you joining tables that is utilized systematically.

     

    Looking at Contact, for example, it has fullname field as the primary name field and it still contains first name and last name fields as well.

     

    https://github.com/MicrosoftDocs/powerapps-docs/blob/main/powerapps-docs/developer/data-platform/entity-metadata.md#primary-name 

     

     

  • luissimoespt Profile Picture
    57 on at

    What if you have scenarios where the Primary Column does not make sense?

    Example if you have an inventory table where pretty much all columns are numeric IDs and quantities... You will not have a primary column even because there is no text field for a start.

    How do you manage these scenarios?

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @luissimoespt ,

    In those scenarios you will still have the primary name field on the table.  I usually set the field to an autonumber field and set the scheme for the autonumber.  Note, it will still be a text field.  Other things I do is the following (in model apps):

    1. Set the field as "not required"
    2. Show the field on forms but make read only

     

  • luissimoespt Profile Picture
    57 on at

    For some reason in PowerApps I can only specify the name and length of the primary column and after set it cannot be changed. So where do you add that autonumber?

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @luissimoespt ,

     

    You should be able to change the Data Type on the primary name column and one of the options should be "# Autonumber", see below...

    dpoggemann_0-1680193586507.png

     

  • luissimoespt Profile Picture
    57 on at

    Got it. On edit it does allow me. It's weird that on creation it does not allow same type of settings. 
    Thanks!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard