For various reasons, I'm using a function node to change the payload. My incoming payload is a string. How do I incorporate that into the following function?
msg.payload =
{
data:
{
"message":" incoming_payload ",
"data":
{
"priority":"high",
"importance":"high",
}
}
}
return msg;
E1cid
24 December 2021 20:17
2
msg.payload =
{
data:
{
"message": msg.payload,
"data":
{
"priority":"high",
"importance":"high",
}
}
}
return msg;
Assuming the incoming payload is msg.payload
1 Like
Thanks. I really tried to find the answer before asking, but that looks so obvious it's embarrassing.
Cheers, Richard
1 Like
system
Closed
7 January 2022 22:08
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.