Hello
I have 2 lists in Sharepoint:
BasicInfo (ID, Name, CompanyName)
COVIDResponse (basicInfoID, Question1, Question2, Question(n+1) ..)
I have set COVIDResponse.basicInfoID to be a Lookup against BasicInfo, and set this as a required field. On the sharepoint end of things, this works great - I must enter the data in BasicInfo first, then I am able to create a row in COVIDResponse - first selecting the correct basicInfo record before being able to create the COVIDResponse record.
I am trying to make a Powerapp for my users to use. I've created the BasicInfo form without issue - data submits, etc.
On the next screen, I want to present the COVIDResponse fields. Since I've made COVIDResponse.basicInfoID required, I need to know how to set it from the BasicInfo submission.
I have tried following https://wonderlaura.com/2017/08/16/powerapps-set-sharepoint-lookup-field/, but she's pre-populating (and pre-selecting) a field in a select list. This method didn't seem to work in my application.
I have tried using the Lookup() function (following loosely on https://powerusers.microsoft.com/t5/Building-Power-Apps/Auto-populate-fields-based-on-the-users-inputs/td-p/104648) by settings the Items value to "LookUp('Basic Visitor Information', ID=BasicVisitor_Form.LastSubmit.ID)", but this resulted in an error - Items is looking for a Table value, and lookup returns a single record.
Help? 🙂
Thanks,
Tim