Hi @Data_Enthusiast ,
Does the second Patch function would update the previous submitted record (through the first Patch function) with Comments?
Based on the needs that you mentioned, I think a global variable could achieve your needs. You could consider save your first Patch formula result into a variable, then within your second Patch formula, you could edit the previous submitted record based on the variable.
I have made a test on my side, please consider take a try with the following workaround:
Set the OnSelect property of the "first button" to following:
Set(
SubmittedRecord,
Patch( // Type your Patch formula here
'Your SP List',
Defaults('Your SP List'),
{
Title: "xxxx",
Column2: TextInput2.Text,
Column3: TextInput3.Text,
...
}
)
)
Set the OnSelect property of the "second button" to following:
Patch(
'Your SP List',
LookUp('Your SP List', ID = SubmittedRecord.ID), // Reference the Item ID from the saved SubmittedRecord variable
{
Comments: CommentTextBox.Text
}
)
Please take a try with above solution, check if the issue is solved.
Best regards,