Im trying to update a existing record using htis formula but when I try it it say comment udpated but it remved the comment and I cant see the new updated comment. Im trying to first check that the user who has made comment can only change. The below code is is for submit button of update form. The writebackcomment is the sharepoint list file.
If(
selectedComment.USERNAME = User().FullName,
Patch(
Writebackcomments,
selectedComment,
{
COMMENTS: Inputcpmments.Text,
DATE: Now()
}
);
Notify("Comment updated successfully.", NotificationType.Success);
Navigate(Screen1, ScreenTransition.None),
Notify("You are not the author of this comment.", NotificationType.Error)
)