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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Write Text into a file...
Power Automate
Answered

Write Text into a file from a CSV

(0) ShareShare
ReportReport
Posted on by 132

Hi i do have the following FLOW: 

Zohaib1999_0-1714652572989.png

1. Get files (from a path) 

2. read the text out of it

3. create a varibale for the specific column

4. write the column data into a txt file

 

The problem is i can't get the values into a variable.. why is that so? 

Zohaib1999_2-1714652719482.png

Zohaib1999_0-1714652952099.png

 

 

 

 

I have the same question (0)
  • eetuRobo Profile Picture
    4,556 Super User 2026 Season 1 on at

    Your variable is table so you need to give it a row which you take the value from. Now you only give it the column.
    If you create For each loop that uses that CSVTable variable then that syntax works %CSVTable['Column#1']%
    Or if you want to just use first row then: %CSVTable[0]['Column#1']%

  • Zohaib1999 Profile Picture
    132 on at

    Hi i want every value from that column stored into the file 

  • Verified answer
    eetuRobo Profile Picture
    4,556 Super User 2026 Season 1 on at

    Then do something like this:

    eetuRobo_1-1714654042744.png

     

    So have another loop that uses the CSVTable and then you refer to that loops currentItem and the column.
    So you go through every row of the CSVTable.
    The idea is that then its not a dataTable any more but a data row so you can then refer to the column only and go through each row

    eetuRobo_2-1714654148632.png

    So inside the second loop %CurrentItem['Column#1']% refers to that single data rows Column#1. Then it goes to the next row in the next loop until it has gone through them all.

    When you Write text to file remember to append and not over write.

    eetuRobo_5-1714654283706.png

     

  • eetuRobo Profile Picture
    4,556 Super User 2026 Season 1 on at

    I forgot about the Retrive data table column into list -action.
    This should actually be cleaner without an extra loop:

    eetuRobo_2-1714654710860.png

     

    So if you use Retrieve data table column into list and just use that in write text to file

    eetuRobo_1-1714654663974.png

     



     

  • Zohaib1999 Profile Picture
    132 on at

    Zohaib1999_0-1714654862636.png

    Thank you worked, but also like this

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard