I have two forms & data sources (both SharePoint) within my app and I need to create a link between the two, ideally populating a lookup field in my second form so the user doesn't have to search for it. DataSource1 = "Projects". DataSource2 = "DataSet". The user navigates from the Projects form to the DataSet form, but there is also a button from the home page where they can go direct to DataSet, with no linkage required.
So "Data" has a lookup to "Projects" based on a field "ProjectName". Items for this field is set to: Choices([@DataSet].LinkedProjects).
I've played with different options, including this one:
PATCH A SharePoint LookUp Column In Power Apps - Matthew Devaney. However, I get an error with this saying it was looking for a table and I had a record. I tried it to include the below, but no luck with this either.
{'@odata.type':"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",I set a global variable on one of the Projects forms to grab ProjectName.
I've tried setting the default of the field to this variable but it doesn't populate.
Another option was set the default to lookup the Author.Claims of the Projects list with that of my 'loggedUserClaims' another variable. Again, it doesn't populate.
Is there something I've missed, or is there anything else I could try?