cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

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
Highlighted
Helper I
Helper I

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
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 (13,409)