Hi there, for a service desk application i am trying to patch the record that is selected from the gallery.
I have gal_alltickets which has the similar screen below. On Select of > button, i have the code :
Set(varGalRecord, ThisItem)

This will navigate the screen and shows all the ticket details.

The support agent then have an option to change issue status, Priority or due date and enters the comment and then click on Submit.
In Submit button i have the formula :
Set(
varGalRecord,
Patch(
MyHelpDesk,
varGalRecord,
{Comments: varGalRecord.Comments & "****" & "-" & User().Email & "-" & Now() & ":<br>" & html_comments.HtmlText},
{lastcomment: PlainText(html_comments.HtmlText)},
Form_agent.Updates,form_addattachments.Updates
)
)
this code was working till yesterday and all of sudden today when i open this code in edit mode it throws me an error.
1. In my all_tickets gallery, On select of Button it shows as

Is there a better way to patch my datasource with the gallery selected Item in the above formula way. Please help.