Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Convert CSV string into Array fields for Slack message

(0) ShareShare
ReportReport
Posted on by 28

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:

Screen Shot 2019-02-09 at 5.24.40 PM.png

 

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?

  • anton-khrit Profile Picture
    197 on at
    Re: Convert CSV string into Array fields for Slack message

    Hi!

     

    You can use Parse CSV action from Plumsail Documents connector. It allows you to convert CSV into an array and variables for each column. Please read this article demonstrating how it works.

  • Verified answer
    jlazerus Profile Picture
    28 on at
    Re: Convert CSV string into Array fields for Slack message

    I actually just figured this out. 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1