cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
News & Announcements

Community Blog

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

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (11,370)