How to use variables in msg path?

Hi, I'm having problems with this "easy" task, please help.

Tasks:

  1. Lookup value of "msg.data.game_id" in "msg.data.games"
  2. Copy the attribute "media_image_url" to "msg.data.game_image"

Is the change node able to perform this?

I'm happy to share the code, but not sure it's needed here.

Use square brackets. Also I think you need the full path (e.g. msg.aaaa[msg.xxxxx.yyyyy].bbbb)

What does the built in help say?

1 Like

Thank you!

Working Path:

data.games[msg.data.game_id].media_image_url

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