I have 2 lists connected to my Power Apps. Both are added as new forms to the power app. But the 2nd list has a lookup column to the first list. I want the user to submit the new record to the first list first. Then automatically grab the newly created ID and set it as the lookup column on that 2nd list new form so that when they submit that 2nd form to create a new item, it will just be linked to the item created in the first list.
To do this, I tried to edit the default value of the lookup to be "Form_PersonalInfo.LastSubmit" (this is the first form), and the button that submits it looks like "SubmitForm(Form_PersonalInfo);" The form on success event is "Navigate(Screen_AdditionalTravelers, ScreenTransition.Cover);". However it doesn't work. I get an error saying "An entry is required or has an invalid value. Please correct and try again".
Anyone know how to do this?