I have a gallery that displays expense items that are Pending. I have a checkbox in the form to check off what items are Approved. then a button that will update the ItemStatus field. The formula I have has a delegation error under the = sign and ".text" but the rest looks fine. When I hit the button it doesn't update the field.
"ItemStatus is a "Single line of text" type in a SP list 'Expense App List New'
Button Formula
ForAll(
Filter(
Pending_Expenses_Approval_Gallery_1.AllItems,
Approve_Item_Checkbox.Value = true),
Patch(
'Expense App List New',
LookUp(
'Expense App List New',
RequestID = ID_Label4.Text
),
{ItemStatus: "Aprroved"}
)
);
Refresh('Expense App List New')