Recover in function node the results of other function node not conected

My issue:

I want to read one value from one function node in other function node

The error message:

My workflow:

Share the output returned by the last node

It is a console.log, so I would see one date:

Information on your n8n setup

  • **n8n version:**0.160.0
  • Running n8n via [Docker, npm,, desktop app]: Desktop

Thank you very much for you time and support!

Did you try $items?

Hello @RicardoE105,

What do you means with $items?
I am trying to do:
const lastMod = $node["Recover Last Modification"].json["lastMod"]

I thought that $items was to recover the incoming inputs to the function.
Could you explain me with more detail please?
Thank you very much for your time and support!

I don’t know why but now it is running properly…
Sorry for the disturb…I apologize!