Skip to main content
Community site session details

Community site session details

Session Id : wo8YW1SnLeca1wiD6TtAni
Power Apps - Building Power Apps
Answered

Create Ticket Number based on Data on SharePoint

Like (0) ShareShare
ReportReport
Posted on 22 May 2024 02:11:10 by 6

Hi there.. I'm a total newbie when it comes to using Power Apps. I attempt to develop a ticketing system using SharePoint and Power Apps. After that, Power Automate generates the ticket number. However, the issue is that the Ticket Number has just started to appear on my Power Apps UI when I enter new data from my Power Apps form. What happens if you want it to show up alongside objects in Power Apps at the same time? 

review formreview formpopup if the ticket sucessfully submittedpopup if the ticket sucessfully submittedcode in submit buttoncode in submit buttonmy sharepointmy sharepointmy power automatemy power automate

  • Verified answer
    Cat Schneider Profile Picture
    488 Most Valuable Professional on 22 May 2024 at 04:12:33
    Re: Create Ticket Number based on Data on SharePoint

    You should be able to capture the values generated in SharePoint within a context variable and then output the ticket value in the success screen you are showing in your app, without the need to use a Power Automate Flow.

    If the field is auto-generating, you can use the LastSubmit() property of the Form to capture that autogenerated value. This post (Solved: Quick question - LastSubmit() - Power Platform Community (microsoft.com)) from a while ago, talks about it some.

    Basically, in the OnSuccess property of the form control, you can use the following:

    UpdateContext({varTicketNumber: Self.LastSubmit.'Nomor Tiket'})

     

    Then use the varTicketNumber value to display in the Ticket Number field here:

    CatSchneider_0-1716350806796.png


    If you need the flow to run in order to generate the ticket number, then you can store the ID of the record in your context variable, then use a LookUp() function on your list to lookup the ticket number field from SharePoint using the ID value to attempt to capture the value dynamically.

    Let me know if that helps! 

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete