I'm new to using power apps and have had a heck of a time getting this help desk template working like it's supposed to. I am able to get my tickets to appear in sharepoint but when I edit/update them in admin login within the app, none of the changes are saved let alone updated to sharepoint. For example, assign the ticket to myself, change the percent complete to 50%, click update and it just resets everything back to it's original status. If anyone could help with guiding me in the right direction to maintain the updated changes I would greatly appreciate it. Here is the code for when the update button is selected (OnSelect):
If(isAdmin,
Patch(TicketList,LookUp(TicketList,Id=SelectedTicket.ID),{
Priority:EditTicketScreenPriorityDropDown.SelectedText.Value,
Category:EditTicketScreenCategoryDropDown.SelectedText.Value,
TaskStatus:EditTicketScreenStatusDropdown.SelectedText.Value,
PercentComplete:EditTicketScreenCompletedSlider.Value/100,
AssignedTO:AssignedToUserDisplayName,
Editor:MyProfile.Mail,
Modified:Now(),
Description:EditTicketScreenDescriptionInput.Text
}),
Patch(TicketList,LookUp(TicketList,Id = SelectedTicket.ID),{
Priority:EditTicketScreenPriorityDropDown.SelectedText.Value,
Category:EditTicketScreenCategoryDropDown.SelectedText.Value,
Editor:MyProfile.Mail,
Modified:Now(),
Description:EditTicketScreenDescriptionInput.Text
}
));
Reset(EditTicketScreenCompletedSlider);
Reset(EditTicketScreenStatusDropdown);
Navigate(MyTicketsScreen,None)
Let me know if anymore information is needed.
Thank you!