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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,883)