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 / Power Apps Help Desk
Power Apps
Unanswered

Power Apps Help Desk

(0) ShareShare
ReportReport
Posted on by 33

I'm new to Power Apps, trying to deploy the Help Desk template. I assumed it was going to be simple but I am running into all sorts of issues.

 

Once I deployed the template, I updated the AdminList to include my email. This worked and I am able to log in as both a user and an admin.

 

Next I opened Data and replaced the TicketList collection with my SharePoint list. When I do this I get many errors.

2022-04-21_18-34-52.png
2022-04-21_18-37-10.png
2022-04-21_18-35-47.png
Categories:
I have the same question (0)
  • EddieE Profile Picture
    4,641 Moderator on at

    @richardcampbell 

    I'm unfamiliar with the Help Desk template, but in general, when replacing a datasource with inside an app you will need to manually change all the references, eg

     

    where TicketList is written in your Patch code of your second image, this needs to be changed to the name of your SharePoint List

     

    This needs to be done throughout the entire app.

     

    The last error seems to be about a Person/Author. The error is saying a Record is expected but is receiving a Text value. To me, this sounds like the 'Author' field from TicketList is a complex type (such as a Person type field in SharePoint) and your 'Author' field you've setup in your SP List is of type Text. There are a number of ways to fix this, just depends on your needs.

  • richardcampbell Profile Picture
    33 on at

    I had my SharePoint list named the same so when I added the Data set it asked me if I wanted to replace the other one. I said yes but it still broke everything.

     

    I changed the name of my SharePoint list so it was different, added it to the PowerApp and replaced the name and am still getting the same error.

     

    I had the Author and AssignedTO fields as text fields, I changed them to Person or Group fields, was that the right thing to do based on the other errors?

     

    Thanks for the help EddieE!

  • EddieE Profile Picture
    4,641 Moderator on at

    @richardcampbell 

    Firstly, changing the name of SP Lists is never a good idea, this can break more things then is worth it. If you named your list TicketList the in-app intellisense would've want to receive 'TicketList' (note the single quotes) and not TicketList which is the representation of a variable ie in this case, a collection.

     

    Use intellisense to select your data source - this should fix things. If you have change the List name, you may need to delete then re-add the data source, although I'd be inclined to start again with a new list - less errors ...

     

    Changing field types - ie from Text --> Person/Group - is also not good. The best idea would've been to create new columns then reference these. It's also a bad idea to change the names of columns ...

     

    On whether using Text or Person fields is the " ... right thing to do ... " this is up to you. Personally, I steer clear of Person columns unless I'm using them in a Form and I let PowerApps pull through the DataCard properties needed for that column. I then don't mess with these as they can be tricky to get right once you start adjusting them.

     

    If you are still getting the data source error please post an image of the error or copy and paste it here so I can see what's happening. It's a little difficult to know what's going on and I'd only be guessing without seeing it.

  • richardcampbell Profile Picture
    33 on at

    I deleted the Data connector in PowerApps, recreated the SP list from scratch, and reattached it to the Help Desk app.

     

    I did leave the Author and AssignedTO fields as People fields

     

    I ran through and let intellisense help me add the data, it does it without single quotes

     

    Here's my CreateTicketScreenCreateButton:

    Set(NumberOfTickets,NumberOfTickets + 1);
    Patch(TicketList,Defaults(TicketList),{Id:NumberOfTickets,
    Title:CreateTicketScreenTitleText.Text,
    Priority: CreateTicketScreenPriorityDropDown.SelectedText.Value,
    'Created By':MyProfile.Mail,
    TaskStatus:"NOT STARTED",
    PercentComplete: "0",
    Created:Now(),
    AssignedTO:"",
    Description:CreateTicketScreenTaskDescription.Text,
    'Modified By':MyProfile.Mail,
    Modified:Now(),
    Category:CreateTicketScreenCategoryDropDown.SelectedText.Value });
    Reset(CreateTicketScreenTitleText);
    Reset(CreateTicketScreenTaskDescription);
    Reset(CreateTicketScreenCategoryDropDown);
    Reset(CreateTicketScreenPriorityDropDown);
    Navigate(ConfirmSubmitScreen,None)

     

    And the errors I am seeing are attached

     

    2022-04-21_22-41-09.png
  • EddieE Profile Picture
    4,641 Moderator on at

    @richardcampbell 

    It appears that the 'AssignedTO' field is the problem. If at this stage in your app you are leaving it Blank() then just leave it out of your Patch statement, ie

    Set(NumberOfTickets,NumberOfTickets + 1);
    Patch(TicketList,Defaults(TicketList),{Id:NumberOfTickets,
    Title:CreateTicketScreenTitleText.Text,
    Priority: CreateTicketScreenPriorityDropDown.SelectedText.Value,
    'Created By':MyProfile.Mail,
    TaskStatus:"NOT STARTED",
    PercentComplete: "0",
    Created:Now(),
    Description:CreateTicketScreenTaskDescription.Text,
    'Modified By':MyProfile.Mail,
    Modified:Now(),
    Category:CreateTicketScreenCategoryDropDown.SelectedText.Value });
    Reset(CreateTicketScreenTitleText);
    Reset(CreateTicketScreenTaskDescription);
    Reset(CreateTicketScreenCategoryDropDown);
    Reset(CreateTicketScreenPriorityDropDown);
    Navigate(ConfirmSubmitScreen,None)

     

     

  • richardcampbell Profile Picture
    33 on at

    I left it out and now it is giving me an error for Author but that is being left out also

    2022-04-21_22-59-22.png
  • EddieE Profile Picture
    4,641 Moderator on at

    @richardcampbell 

    By 'Author' do you mean 'Created by'? The columns

     

    - Created

    - Created By

    - Modified, and

    - Modified By 

     

    are all inbuilt SP columns and as such their data is controlled by SP. Try removing these from your Patch as well.

     

    Also, if 'Author' isn't 'Created By' check if it's set as Required in SP. If so then you will need to supply a value (all Required fields MUST be included in your Patch).

     

    However, if you do not need it to be Required, then Uncheck this box in SP and Refresh your data source.

  • richardcampbell Profile Picture
    33 on at

    It's not one of those, it's a different column in the SP list.

     

    I made everything not required when I created it.

    2022-04-22_07-40-20.png
    2022-04-22_07-38-30.png
  • EddieE Profile Picture
    4,641 Moderator on at

    I’m not seeing a red line error indicator in your formula, are you sure it’s the OnSelect property that’s the issue. There maybe another button property causing the error

  • richardcampbell Profile Picture
    33 on at

    Do I need to rewrite the App/On Start?

    2022-04-22_08-19-03.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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 414

#2
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard