Skip to main content
Community site session details

Community site session details

Session Id : H97A4HadgpVzqt+ltykgNd
Power Apps - Microsoft Dataverse
Answered

On Add new row, what to put in the primary key if it is Autonumber?

Like (0) ShareShare
ReportReport
Posted on 4 Mar 2023 14:20:23 by 74

I have a flow that is creating a new row based on other table rows.  Once I get to the Add New Row, it is prompting me with an required field the primary key of the table I'm adding it to.  It is defined as a prefixed autonumber.  Not sure what need to put.  See below

 

bdherh1_0-1677939576539.png

 

 

bdherh1_1-1677939590867.png

 

Categories:
  • Verified answer
    ChrisPiasecki Profile Picture
    6,397 Most Valuable Professional on 04 Mar 2023 at 19:19:32
    Re: On Add new row, what to put in the primary key if it is Autonumber?

    On your forms you should make the Autonumber field read only. 

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

  • bdherh1 Profile Picture
    74 on 04 Mar 2023 at 19:12:06
    Re: On Add new row, what to put in the primary key if it is Autonumber?

    Thank you.  I figured since it was the primary name column.  It defaulted to Required and I left it.  I just changed it to Optional and it took.  I will try it on my form in a bit

  • ChrisPiasecki Profile Picture
    6,397 Most Valuable Professional on 04 Mar 2023 at 14:53:19
    Re: On Add new row, what to put in the primary key if it is Autonumber?

    Hi @bdherh1,

     

    You can either:

    • Make the column optional in the column settings within the table designer in maker portal.
    • Populate the value with the expression Null in your flow. The platform will take care of populating the correct Autonumer value.

     

    ---
    Please click Accept as Solution if my post answered your question. This will help others find solutions to similar questions. If you like my post and/or find it helpful, please consider giving it a Thumbs Up.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1

Featured topics

Loading complete