cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ghdunn
Post Patron
Post Patron

Autonumber in Common Data Service Primary Field/Forms

If I convert the Primary Field of a Custom Entity to 'Autonumber', would I not expect that to be auto-populated when i created a new record?

 

See 2 x screenprints below - i would expect a new form to increment the next number??

 

1.PNG2.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
JasonAlmeida
Helper II
Helper II

hey dude,

 

The new form doesn't set the number when you load the page, but actually when you save the record. CDS handles the leg-work of ensuring that numbers don't overlap.

Also, if you use the name field as an autonumber, you will need to mark it as optional as opposed to required. CDS will populate it after you hit the save button. 

I've attached a couple of screenshots to help

View solution in original post

2 REPLIES 2
JasonAlmeida
Helper II
Helper II

hey dude,

 

The new form doesn't set the number when you load the page, but actually when you save the record. CDS handles the leg-work of ensuring that numbers don't overlap.

Also, if you use the name field as an autonumber, you will need to mark it as optional as opposed to required. CDS will populate it after you hit the save button. 

I've attached a couple of screenshots to help

View solution in original post

Also, if you don't want the users to overwrite the autonumber, make sure the optional field is not displayed in your form.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,048)