{
if(data[i]["data-nextguideitem"] != null
&& data[i]["data-testid"] === "guideItem-0")
{
msg.payload = data[i]["data-nextguideitem"];
if(flow.get("franceInter") !== msg.payload)
{
flow.set("franceInter", msg.payload);
}
return msg;
}
}```
and I want to inject into a node Sonos :
$env(flow.get("franceInter"))
but I get :
```group.play.tunein: radio id (payload) >>$env(flow.get("franceInter")) wrong syntax. Regular expr. - see documentation :: Details: none```
Thank for your help
:
You will have to retrieve the context before the sonos node and pass it in as a payload. You cannot retrieve it as your screenshot because its expecting a string or a number.
Have you read the link see documentation?
I found out how to do it
I load the variable from a function before injecting it into the node, leaving the payload field empty
Thanks to everyone who took the time