Hello
I am posting this as an FYI as I can 100% repro it so I opened a ticket.
Scenario:
- I have an SP List with 2 rows only.
- The list has 3 columns.
- Column A Text: Value is a GUID
- Column B Text: Value is a GUID
- Column C Text: Value is a string
I set a variable as such in a App OnStart or a Button doesn’t matter
Set(ColumnAGUID, “Row2Value”)
I have a component that as an Event, that returns the GUID Value for Row2 ColumnB
I set another variable in the Event Property on the App side
Set(ColumnBGUID, Text(ReturnedRow2Value);
In the same Event or in a button, I do the following
Notify(LookUp(‘Sp list’, ColumnA = Row2Value And ColumnB = ReturnRow2Value).ColumnC)
and each time it returns Row 1 value instead of Row 2
I have the Variables written into separate labels.
the values are correct. If I copy the values and hardcore the LookUp it gives the right value in the Notify.
Even more. If in the Event or Button, if I copy the Notify and in place of the variables, I use the Label1.Text and Label2.Text in the copied LookUp, which simply holds the value of the Variables, it now works and shows the right ColumnC value.
So, variable 1 = GUIDA and Label1.Text = GUIDA also.
Variable 2 = GUIDB and Label2.Text = GUIDB also
but using the Variables directly in the lookup gives the wrong value, but replacing them with their Label.Text counterpart works…
I can even use the same lookup in a button, post Event, and if I use the variables it’s wrong. Then use the labels and it works
Craziest thing I’ve seen in a long while.