Hi,
I have an HTTP request where I'm receiving CSV data and I'd like to format that data so that it fits into the json body of a message I'd like to send with Slack.
Response body set as string variable:
I'm trying to fit each row of the response into this portion of the json for a formatted message.
"fields": [ { "title": "Public IP Space - Daily", "value": "2019-02-09 10:00:04", "short": false }, { "title": "DMZ Servers - Daily", "value": "2019-02-09 11:30:10", "short": false }, { "title": "Cisco Network Devices - Daily", "value": "2019-02-09 11:30:10", "short": false } ],
I will not know the number of lines this response will have. It can be 0-7ish at any given time. I've tried the method on this post but its not working the way I need it too where each line gets its own hash table. Any thoughts on how to do this in flow?