Payload as dropdown pair

A problem that I have walked upon is getting a msg.payload as the label in a dropdown, though it works the way around as an id.
This is what I want (ends up in error):

{msg.payload: id}

but having it as id works fine:

{label: msg.payload}

I might guess there is a workaround for this so I appreciate all answers.

try
{[msg.payload]: id}

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.