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

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

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

Can anyone help?

Highlighted

@v-monli-msft

Can you help?

Highlighted
Frequent Visitor

CSVFileHandlingMethod.PNG

Highlighted
Regular Visitor

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

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Users online (8,487)