Referenced Action: An action called Lägg till ETT Simulerat Pass.
The action Lägg till ETT Simulerat Pass is for the table Säsongsplan and uses add a new row to another table.
Table to add to:Pass
In Set these columns, I try to set the value for Pass[VeckaID] (which is a Ref to the Säsongsplan table).
The Bug: When I set Pass[VeckaID] to [VeckaID], it writes the Label of the Säsongsplan row, not the Key. I have tried forcing the Key with INDEX(LIST([VeckaID]), 1) and [_THISROW].[VeckaID], but they all fail and write the Label instead.
Because the wrong value is written to Pass[VeckaID], all subsequent LOOKUP and SELECT formulas that rely on this relationship fail. The app is completely broken because of this one step.
How can I force the action, when run by the bot, to write the correct Key value?
Please guide me in what is the issue with the LOOKUP() expressions, should I change them to SELECT() or is there anything else wrong with the expressions?