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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Help Desk Template - D...
Power Apps
Answered

Help Desk Template - Display Ticket Number in Sharepoint List?

(0) ShareShare
ReportReport
Posted on by 431

Hi, 

Is there a way to display a ticket number in the Sharepoint list?

Thanks

Jerry

SharepointList.PNG

 

Categories:
I have the same question (0)
  • newk1991 Profile Picture
    91 on at

    I would add a Text column to the SharePoint list. Then add the field to the PowerApps form; made the default value of the Ticket# datacard --> "Ticket#" & Text(
    Now(),
    "yymmddmmss"
    )

     

    The number generated is the current time in a sting format 

     

  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @JerryH ,

    Could you please share a bit more about the "Ticket Number" that you mentioned? Is the Ticket Id value?

    Do you use the SP List as data source in your Help Desk Template app?

     

    If you want to display the Ticket Number in your SP List, you need to create a Number type column (called "TicketId") in your SP List firstly to store the "Ticket Number" for each submitted ticket.

     

    Within your Help Desk Template app, when you submit new ticket back to your SP List using Patch function, you need to modify your Patch formula as below:

    Patch(
     HelpDesk, // HelpDesk represent your SP List which store your submitted Ticket
     Defaults(HelpDesk),
     {
     TicketId: CountRows(HelpDesk) + 1, // Modify formula here. TicketId column is a Number column to store the Ticket Number for each ticket
     Title:CreateTicketScreenTitleText.Text,
     Priority: CreateTicketScreenPriorityDropDown.SelectedText.Value,
     Author:MyProfile.Mail,
     TaskStatus:"NOT STARTED",
     PercentComplete: "0",
     Created:Now(),
     AssignedTO:"",
     Description:CreateTicketScreenTaskDescription.Text,
     Editor:MyProfile.Mail,
     Modified:Now(),
     Category:CreateTicketScreenCategoryDropDown.SelectedText.Value
     }
    )

     

    Actually, I think it is not necessary to add another column to store the "Ticket Number" for each submitted ticket. If you use SP list as data source, you could use the system field -- ID as "Ticket Number". The "ID" column in SP List is a Auto-Increment Number column, you could use it as "Ticket Number" for each submitted ticket.

    If you display the system "ID" column in your SP List, please try the following steps:

    6.JPG

     

    7.JPG

     

    Please take a try with above solution, then check if the issue is solved.

     

    Best regards,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard