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 / Selected Ticket Locati...
Power Apps
Answered

Selected Ticket Location Name not pulling through

(0) ShareShare
ReportReport
Posted on by 431

Hi team

After i have created a ticket, i navigate to My Tickets however some of the information does not pull though.

1. Why does my Location label not pull through the location specified on the ticket?

2. Why do i need to click on the ticket for it to pull other information through?

Thanks

 

Location.PNG

Categories:
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @JerryH ,

    Is your data source SharePoint? If so, what is the name of the field in SharePoint and can you see the data in the list?

  • JerryH Profile Picture
    431 on at

    Hi Warren, 

    Thanks for reaching out.

    I am using Sharepoint and LocationName is one of my columns.

    I'm supposed to be presenting in 30 minutes so am panicking.

  • JerryH Profile Picture
    431 on at

    Hi Warren, 

    I know where i am going wrong. When i create a ticket, the Location and ClientName are not pulling through to Sharepoint.

    Can you review the code below and error below that - please

     

    Set(
     NumberOfTickets, NumberOfTickets + 1
    );
    Patch(
     HelpDesk,
     Defaults(HelpDesk),
     {
     Title: CreateTicketScreenTitleText.Text,
     Priority: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id: 1,
     Value: CreateTicketScreenPriorityDropDown.SelectedText.Value,
     PercentComplete: 0,
     Description: CreateTicketScreenTaskDescription.Text,
     Category: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id: 1,
     Value: CreateTicketScreenCategoryDropDown.SelectedText.Value,
     LocationName: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id: 1,
     Value: LocationNameDD.SelectedText.Value,
     ClientName: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id: 1,
     Value: ClientNameDD.SelectedText.Value }}}}}
    );
    Reset(CreateTicketScreenTitleText);
    Reset(CreateTicketScreenTaskDescription);
    Reset(CreateTicketScreenCategoryDropDown);
    Reset(CreateTicketScreenPriorityDropDown);
    Navigate(MyTicketsScreen)

     

    ERROR: Description: Field 'Description is required

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Ok @JerryH ,

    Second question - can you see the data in your SharePoint List in the LocationName column?

    Also check the Default of the text control - try ThisItem.LocationName.

     

    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.

  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @JerryH ,

    We posted at the same time - ignore my last one. What type of field is location in the list. If Text, you need

    LocationName: LocationNameDD.Selected.Value

    If Choice, you need

    LocationName: {Value:LocationNameDD.Selected.Value}

     

    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.

  • JerryH Profile Picture
    431 on at

    Hi Warren, 

    LocationName and ClientName are set up as Text Fields on SP because it pulls info from another list. (has previously worked)

    Please see revised code + error message. (Please can you help me get this over the line)

     

    Errror.png

     

    Set(
     NumberOfTickets, NumberOfTickets + 1
    );
    Patch(
     HelpDesk,
     Defaults(HelpDesk),
     {
     Title: CreateTicketScreenTitleText.Text,
     Priority: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id: 1,
     Value: CreateTicketScreenPriorityDropDown.SelectedText.Value,
     Category: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id: 1,
     Value: CreateTicketScreenCategoryDropDown.SelectedText.Value,
     LocationName: LocationNameDD.SelectedText.Value,
     ClientName: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id: 1,
     Value: ClientNameDD.SelectedText.Value,
     PercentComplete: 0,
     Description: CreateTicketScreenTaskDescription.Text }}}}
    );
    Reset(CreateTicketScreenTitleText);
    Reset(CreateTicketScreenTaskDescription);
    Reset(CreateTicketScreenCategoryDropDown);
    Reset(CreateTicketScreenPriorityDropDown);
    Navigate(MyTicketsScreen)
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @JerryH ,

    The error is that the field is required, so I am assuming you have a blank text box?

    Simply go into SharePoint and remove the required property. 

     

    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.

     

     

  • JerryH Profile Picture
    431 on at

    Oh no. Still the ClientName, LocationName & now Category, Percentage & description are not populating in Sharepoint

     

    Set(
     NumberOfTickets, NumberOfTickets + 1
    );
    Patch(
     HelpDesk,
     Defaults(HelpDesk),
     {
     Title: CreateTicketScreenTitleText.Text,
     Priority: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id: 1,
     Value: CreateTicketScreenPriorityDropDown.SelectedText.Value,
     Category: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id: 1,
     Value: CreateTicketScreenCategoryDropDown.SelectedText.Value,
     LocationName: LocationNameDD.SelectedText.Value,
     ClientName: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
     Id: 1,
     Value: ClientNameDD.SelectedText.Value,
     PercentComplete: 0,
     Description: CreateTicketScreenTaskDescription.Text }}}}
    );
    Reset(CreateTicketScreenTitleText);
    Reset(CreateTicketScreenTaskDescription);
    Reset(CreateTicketScreenCategoryDropDown);
    Reset(CreateTicketScreenPriorityDropDown);
    Reset(CreateTicketScreenTaskDescription);
    Navigate(MyTicketsScreen)
  • WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    @JerryH ,

    Break this down to one field at a time in the Patch. Have a look at the field type and see if they need that code. Also Choice fields do not need the code you have - see the below. You also had all your }} brackets nested at the end, which is not the correct syntax.

    Patch(
     HelpDesk,
     Defaults(HelpDesk),
     {
     Title: CreateTicketScreenTitleText.Text,
     Priority: {Value: CreateTicketScreenPriorityDropDown.Selected.Value},
     Category: {Value: CreateTicketScreenCategoryDropDown.Selected.Value},
     LocationName: LocationNameDD.Selected.Value,
     ClientName: {Value: ClientNameDD.Selected.Value},
     PercentComplete: 0,
     Description: CreateTicketScreenTaskDescription.Text
     }
    );
    Reset(CreateTicketScreenTitleText);
    Reset(CreateTicketScreenTaskDescription);
    Reset(CreateTicketScreenCategoryDropDown);
    Reset(CreateTicketScreenPriorityDropDown);
    Reset(CreateTicketScreenTaskDescription);
    Navigate(MyTicketsScreen)

     

    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.

  • JerryH Profile Picture
    431 on at

    Now a problem with Location... sorry to keep bugging you. 

     

    NewError.png

     

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard