Hi
I'm fairly new to PowerApps. I have two forms in my app, one called Supplier and another called Supplier Services.
On the Supplier form I have a submit button:
Patch('[dbo].[tblCompany]',Defaults('[dbo].[tblCompany]'),{Name: TextInput1.Text});Navigate(SupplierServices,ScreenTransition.Fade)
Now on the Supplier Services screen, I need to get the value of the ID back from SQL for the newly patched Company so that I can assign services against that company.
On the submit button of the Supplier Services form I want to patch the services across, along with the SupplierID
Patch('[dbo].[tblSupplierServices]',Defaults('[dbo].[tblSupplierServices]'),{SupplierID:Value(TextInput3.Text),ServiceType: ComboBox2.Selected.ServiceID});Navigate(SubmissionScreen,ScreenTransition.Fade)
At the moment I can't seem to recall the ID, I have played around with variable but have had no joy.
Is there a way?
Many thanks
Gareth