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

How to generate Auto Number

Hi,

 

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

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

 

Regards

Suman

3 REPLIES 3
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:

https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Manually-Generating-UniqueId-Key-Val...

 

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:

9.JPG

 

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

Announcements
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.

secondImage

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)