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
Answered

Creating Ticket

(0) ShareShare
ReportReport
Posted on by 75

Hi all,

 

I need help in creating a ticket. When a button is click it will show the number 1. When a new ticket is created it will show the number 2. This will carry on when a new ticket is created. The submit button is submitting an edit form and 'RefNo' is the name of the column from SharePoint. Inside the RefNo text input I name the variable as CountNum. On the MainScreen, it should display the latest ticket number.

 

Below is the code that I put on my submit button:

 

SubmitForm(Form_FormScreen1) = Set (CountNum, CountNum + 1);Navigate(MainScreen);ResetForm(Form_FormScreen1);Office365Outlook.SendEmailV2("Mail","Mail Subject", "Mail Content")

 

Categories:
I have the same question (0)
  • PTBBSolutions Profile Picture
    691 on at

    Hi @HF306 ,

     

    In order to get the latest ID, you can set your CountNum to be something like:

    First(
     Sort(
     [Your SP List Name],
     RefNo,
     Descending
     )
    ).ID

    So, in your submit form, you can  use what you have now = CountNum = CountNum+1

     

    Let me know if this helps.

  • Verified answer
    WarrenBelz Profile Picture
    154,399 Most Valuable Professional on at

    HI @HF306 ,

    Apart from the equals sign, the code will set the Variable to the next number

    SubmitForm(Form_FormScreen1);
    Set(CountNum, CountNum + 1);
    Navigate(MainScreen);
    ResetForm(Form_FormScreen1);
    Office365Outlook.SendEmailV2("Mail","Mail Subject", "Mail Content")

    What is the Item of the Form on the main screen?

  • Verified answer
    WarrenBelz Profile Picture
    154,399 Most Valuable Professional on at

    Hi @HF306 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard