Hello,
I'm struggling to make a PowerApps LookUp function work.
So I have this two sharepoint lists, the first one is a complex form for my company where users must fill some information.
The second one is a list used as a data source, just like a database, where all the information needed for the form is.
So at certain point of my powerapps based form, there is a field where you have to fill a code. I wish that when the user fills the code, all the other information is automatically filled within the data from the second list data.
I've tried:
LookUp('MySecondlist', Code=DataCardValue46, Name)
LookUp('MySecondlist', DataCardValue46.Text = ThisItem.'Code').Name
LookUp(MySecondlist, Code=DataCardValue46.Text).Name
But none of it works.
So CODE is a column in the second list. DataCardValue46 is the input for this code in my PowerApps app. Name is also a column in my second list and should be the result.
Please, I've looked everywhere and tried everything, but I can't make this work.
Does anyone have any solution?
Here's a pic of one of my tries:

(It's in brazilian portuguese, but I think it's understandable)
Thanks in advance!