Change node to function node (newbie problem)

Hi,
I would like to do the same thing as this node in a function node and I can't do it.

image

can you help me

Thanks

msg.payload = msg.payload.e2movielist;
return msg;

An I missing something?

Thank you Steve,
That's what I thought but I had the answer

msg.payload : undefined
undefined

I copied your sentence as it is. Indeed it works

Perhaps a spelling mistake? Also, remember, JavaScript is case sensitive.

Also, in case you don't already know, to avoid typos, you can you the copy path button...

canned text...

There’s a great page in the docs that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

BX00Cy7yHi

https://nodered.org/docs/user-guide/messages

I found my problem.
the variable to be analyzed was too large (>60000 chr).
(I had simplified the problem to ask my question)

msg.payload = msg.payload.e2movielist.e2movie;

it's ok

msg.payload = msg.payload.e2movielist.e2movie.e2title;

return a "indefinited" error
What is surprising is that this change node returns the correct result

thank you for the time you spent answering me

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