Showing results for 
Search instead for 
Did you mean: 
Helper V
Helper V

How to generate Auto Number



Is there any Feature to generate Auto Number in the  PowerApps Canvas App.

If exists could someone please explain how to generate Auto Number.




Responsive Resident
Responsive Resident

Community Support
Community Support

Hi @SumanKoduri ,

Could you please share a bit more about your scenario?

Do you want to generate a Auto Number in PowerApps app?

Which data source do you use within your app?


I assume that you want to generate a Auto Number in your app, and then save it back to your data source, is it true? I have made a test on my side, please consider take a try with the following formula:

CountRows('YourDataSource') + 1     /* <-- Generate a Row Index Number based on your data source */


 If you want to generate a unique number randomly, please check and see if the following thread would help in your scenario:


In addition, if the data source you used in your app is a CDS Entity, I think the Autonumber type field could achieve your needs. You could consider add a Autonumber type field in your CDS Entity as below:



Please take a try with above solution, then check if the issue is solved.


Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I want to generate unique Auto Purchase Order Number. When i click on create new purchase order in powerapps it would generate the Purchase order number automatically.

Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,083)