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 Apps
Unanswered

Ticket ID

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm currently creating an app that will be used to create and view job tickets. 

 

Each ticket needs it's own unique identifier, I was hoping to make it FM-00000 with each one being a sequential number but I can't see how to do this.

 

Can anyone advise?

 

Many Thanks

Categories:
I have the same question (0)
  • bean Profile Picture
    568 on at

    If you are storing these tickets in a database; when submitting a new ticket, you could possibly get the max value from the database and perhaps +1 to that. However, as FM-00000 would be a string, you might have to try split it by - and get the right side of it, to add a 1 to it.

     

    For a more simple approach, you could just have a column for Type which could be FM or AM or w/e and another column called Ticket_Id which is just a number. This way you can get the max number easily and also add to it easily. 

     

    Hope this gives you more of an idea on how you might want to tackle this problem.

     

    Sean

  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Well, that will depend on which data source you would like to use.

    For example, if here we use SQL Server as the data source, then we could enable an auto-generated ID (Primary Key) field, then under PowerApps, use Concatenate function to combine the string with the number autogenerated, to show it in PowerApps:

    Concatenate("FM-", text(SQLField))

    Things to note is, the auto-generated field under the data source side can't be updated or created under PowerApps.

    There is another thread for your reference, for methods to generate GUID:

    Create a GUID

     

    Regards,

    Michael

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Sorry should have added, the data source I'm using is Excel via OneDrive. 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard