web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Conditional AutoNumber
Power Apps
Unanswered

Conditional AutoNumber

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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?

Categories:
  • shmemane Profile Picture
    Microsoft Employee on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard