cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

Parse a simple text list

I would like to fetch a text file from a server which contains some basic data separated by a space, so it isn't a CSV or JSON formatted. I have seen split but I think I need to split by "\n" or CRLF and then split each of those items in half. Is there any easy way to do this?

8 REPLIES 8
Highlighted
Community Support
Community Support

Re: Parse a simple text list

Hi @Bob_dvb,

 

Can you describe what you want to achieve in flow more clearly? What is the connector that you are using to fetch the data? What do you need to do after you parse the list?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Regular Visitor

Re: Parse a simple text list

Thanks for looking:

 

I have a text log file on a web server which has a list which is like:

hsfdjhjksdhfjk /75879/jdfhf/hjfdhgkjdf/hjdghkjdf/test.m3u8

dfhjshfkjdsjkf /74857/hjdhjkdsh/hjdhkjdhf/test.m3u8

 

I would like to parse through them, and transform them into outputs that I can create sub-actions "for each". I can see JSON parsers but I can't see how to do a simple action on each line of a text response.

 

Bob

Highlighted
Regular Visitor

Re: Parse a simple text list

Can anyone help?

Highlighted
Regular Visitor

Re: Parse a simple text list

@v-monli-msft

Can you help?

Highlighted
Frequent Visitor

Following is a "Simple work around solution" to handle Text(CSV) file, hoping that can help you.

CSVFileHandlingMethod.PNG

Highlighted
Regular Visitor

Re: Parse a simple text list

Just did something similar, but I create an azure functions to extract the data., calling it from the flow. I believe it is your best option for now.
Highlighted
Regular Visitor

Re: Parse a simple text list

Or maybe you can use this project and parse the json file generated: https://github.com/logicappsio/CSVtoJSON
Highlighted
Helper V
Helper V

Re: Parse a simple text list

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.

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Users online (7,618)