What do I mean exactly?
I receive this data via Webflow Webhook, and I want to know if there is a command that I can run (whether it’s a function node, or to add something to the {{$node[“Webflow Trigger”].json[“data”]}} tag which will allow to:
Extract only the Key and the Value (without anything additional as the brackets [] or the “Object” string).
Turn them into individual lines, so that when I enter it into the HTML Text field in the SMTP email node, it will display on individual lines, and will email that easy to understand data.
So in the illustration above, you can see how the raw data value is all joined together, and it has other attributes such as brackets and the “Object” syntax.
Any help is highly appreciated, whether it’s theories to a solution or the solution itself.
I am not entirely sure what your current workflow looks like, but I tried to parse incoming json into a key: value string using either a Set or a Function Node.
The Set Node is using expressions to create a string message:
Marcus, if nobody has ever told you this before, know that you my friend, are a legend!
That Function Node solution came in a clutch, exactly what I was looking for:
The data gets converted to a string and when inputted as an expression within its child node, the keys and their values get displayed properly with the line breaks.
I’m trying to push this into the Email node and use the whole HTML Text aspect of it to see if it’s possible to style the data as well, but I don’t know how do-able that is yet.
But you have definitely helped answer my biggest question and concern, thank you!!