Hi all,
I am looking for a way how to update all records in a Gallery when the user updates the values. Scenario is as follows;
My gallery named InvoiceLinesGallery with Data Source Table Invoice Lines is as follows;

I would like to save the values the user changes example if user changes descriptions of one or more lines, the new values are saved per record. By using ForAll to loop the gallery and Patch to update all changed records, how can I lookup each record in the Invoice Lines Table and patch (update) it? This is what I have come up with so far;
ForAll(InvoiceLinesGallery.AllItems, Patch('Invoice Lines',LookUp('Invoice Lines', 'Invoice Line' = *reference record ID of current gallery item being looped*), {Description: [@LinesDescriptionTextBox].Text}, {UnitPrice: Value([@LinesUnitPriceTextBox].Text)}, {Quantity: Value([@LinesQtyTextBox].Text)}, {GLAccount:[@LinesGLAccountDropdown].Selected}));
where 'Invoice Line' is the record's GUID identifier column.
Also, should the textboxes be referenced with the '@' i.e. [@LinesGLAccountDropdown]?
Thanks in advance!