My app has two screens.
Screen one is a gallery of orders (Dataverse Table).
Selecting a record takes you to screen two, a gallery of order lines (second Dataverse Table).
A quantity field in the gallery is an editable input.
At the top I have a submit button to submit all changes back to the table.
Below is the code for my submit button. I constantly get an 'Invalid argument type' error and I can't for the life of me figure out why.
Any ideas?
ForAll(
gal_OrderLines.AllItems,
Patch(
'POReader-OrderLines',
LookUp(
'POReader-OrderLines',
ID=ThisRecord.ID &&
LineID=ThisRecord.LineID
),
{Qty:inp_Qty.Text}
)
);