web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Remove "" from txt fil...
Power Automate
Unanswered

Remove "" from txt files while parse to sharepoint list

(0) ShareShare
ReportReport
Posted on by 2,249

I'm able to parse txt files from document library to Automate file contents in sharepoint list but issue im going through is "" is in text not getting removed. Kindly help

Categories:
I have the same question (0)
  • ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @Veblitz 

     

    Could you pls share the sample content of text file with expected output?

     

     

  • Veblitz Profile Picture
    2,249 on at

    txt file contents as per below 

     

    "PQA.Suppliers",12345,"charges -usa(110/ab)",0

    "ABS/suppliers",13456,"copiers (100x65)",0

    "bBS/suppliers",16456,"mna (101/pq)",0

    "formuppliers",19456,"circles (180/ss)",0

    "forms",10456,"forms (60/aa)",0

     

    Expected output in list should be as below:

    Target List

    Title                 Column1       Column2                     Column3 

    PQA.Suppliers   12345         charges -usa(110/ab)      0

    ABS/suppliers    13456        copiers (100x65)              0

    bBS/suppliers    16456        mna (101/pq)                  0    

    formuppliers     19456        circles (180/ss)                 0

    forms                10456        forms (60/aa)                   0

     

  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @Veblitz 

     

    Here is the sample flow.

     

    I have stored input txt file in the SharePoint library.

    ManishSolanki_1-1708845110420.png

     

    Flow steps:

    1. Using "Get file content" or "Get file content path" to get the content of the text file. Here, I have hard coded the file path but you can pass the path dynamically:

    ManishSolanki_2-1708845224248.png

     

    2. Next, add "Appy to each" to iterate the rows in txt file content. We will be using expression to get all the rows in an array as input parameter:

    ManishSolanki_3-1708845339703.png

    Expression needs to be added in the expression box as highlighted in the above screenshot:

    split(outputs('Get_file_content')?['body'],decodeUriComponent('%0D%0A'))

     

    Inside apply to each block, add compose action that removes the double quotes and further breaks the row into column values. We will be using expression in the compose action:

    ManishSolanki_4-1708845521228.png

    split(replace(item(),'"',''),',')

     

    Finally, add create item action to save the values in the SharePoint list. Here also we will be using expression for each value of the column:

    ManishSolanki_5-1708845649899.png

    Expression used for Title:

    outputs('Compose')?[0]

    Similarly, use the expression for other columns:

    Column1outputs('Compose')?[1]

    Column2outputs('Compose')?[2]

    Column3outputs('Compose')?[3]

     

     

    Output:

    ManishSolanki_6-1708845762461.png

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • Veblitz Profile Picture
    2,249 on at

    Much appreciated. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard