cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bob_dvb
Level: Powered On

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
Community Support Team
Community Support Team

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.
Bob_dvb
Level: Powered On

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

Bob_dvb
Level: Powered On

Re: Parse a simple text list

Can anyone help?

Bob_dvb
Level: Powered On

Re: Parse a simple text list

@v-monli-msft

Can you help?

TommyChung
Level: Powered On

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

CSVFileHandlingMethod.PNG

Highlighted
fuchsdanielti
Level: Powered On

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.
fuchsdanielti
Level: Powered On

Re: Parse a simple text list

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

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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,713)