cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jwparen2
Level: Power Up

Conditional AutoNumber

I am trying to make a Purchase Order tracker and I need each additional entry to increment like AutoNumber does, but only incremented from the last one for that job.

 

So entries could progress as follows:

 

JOB01-0001

JOB01-0002

JOB02-0001

JOB01-0003

JOB02-0002

 

etc.

 

Is this possible or will I have to go through and create an entirely new entity for each job code?

1 REPLY 1
shmemane
Level: Powered On

Re: Conditional AutoNumber

Hi jwparen2,

 

Thanks for reaching out with the issue. I believe you may be able to use something like this to achieve the auto increment functionality - 

 

OnStart on the screen, you may use - Set( MyVar, <someValue> )

And on each addition of the row, you may - Set( MyVar, MyVar + 1 ); Set( JobId, “Job01-”+ MyVar )

Here is a link for some more reference - 

https://docs.microsoft.com/en-us/powerapps/working-with-variables

 

Let me know if that does not help.

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,932)