Hello all,
I am new to PowerApps and need help with the Patch function.
To update a gallery I am using EditForm1, this navigates back to the browse screen after updating the SharePoint list. So the code below works.
SubmitForm(EditForm1);
Navigate(BrowseScreen1)
The problem starts when I add a patch function to update a different SharePoint list (VendorToWaferDetails) in the same OnSelect code. I use the code below.
SubmitForm(EditForm1);
Patch('VendorToWaferDetails', Defaults('VendorToWaferDetails'),
{
'Batch ID':DataCardValue18.Text,
'Wafer ID':DataCardValue10.Text,
'Vendor Ingot No':DataCardValue21.Value,
'Vendor Box ID':DataCardValue19.Text,
'Vendor Box Slot':DataCardValue20.Value,
'Date of batch up':Now(),
'Assignment':DataCardValue17.SelectedText.Value,
'Operator':DataCardValue2.SelectedText.Value,
});
Navigate(BrowseScreen1)
If I try the patch function alone it still fails to compile.

I have connected to both SharePoint lists and altered my code several times but cannot seem to solve the issue.
Any ideas?
Your help is much appreciated.
Thanks,
Rob