Hello there, So basically yes thisitem is for the IRSuppliesItems, the thing is that gallery contains repeating fields and on the form submission it takes the last submitted IR ID from the form and this is the common field between the two tables
this is how both how the collections are created:
ClearCollect(IRSuppliesItems, {Quantity: "", UOM: "", DateRequired: "", SuppDetails: ""});
Navigate(srcNewIRRequest, ScreenTransition.Fade);
ClearCollect(POSuppliesItems, {
DatePromised: "",
Deliverables: "",
ExpenditureType: "",
PrevQuantity: "",
NewQuantity: "",
NewUnitPrice:"",
WBS: "",
PO_ID: "",
ProjectCode: "",
UOM: "",
Amount: "",
IRRequestID: ""
});
and this is how the screen looks, the patch functionality is added to the button in the gallery that has the text click to save items info:

and for the form above it, it has this formula for the onSuccess
ForAll(
IRSuppliesItems,
Patch(
'IR Supplies Details',
Defaults('IR Supplies Details'),
{
Quantity: Value(ThisRecord.Quantity),
'Supplies Description': ThisRecord.SuppDetails,
UOM: uomInp.Selected.Value,
'Date Required': DateValue(ThisRecord.DateRequired),
'IR Request ID': LookUp(
'IR Requets',
'IR Request Id' = Form3.LastSubmit.'IR Request Id'
)
}
)
);
if you can assist me with this, i would really appreciate it and thank you.