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

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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (3,207)