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 / Iterate CSV file in po...
Power Automate
Unanswered

Iterate CSV file in power automate

(0) ShareShare
ReportReport
Posted on by 108

can some share a flow / share links as how to open and a read a csv file.. I went lots of youtube but there was no clarity

 

Requirement

 

open csv and iterate csv file  

 

 

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @krishnakumar_R - I created a solution - 

     

    https://powerusers.microsoft.com/t5/Webinars-and-Video-Gallery/Get-Rows-Parse-from-CSV-file-using-Power-Automate-and-bulk/td-p/905684

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

  • grantjenkins Profile Picture
    11,063 Moderator on at

    Will the CSV that you want to work with always have the same headers/columns?

  • krishnakumar_R Profile Picture
    108 on at

    Headers will change 

    Need a generic code / Link to handle CSV

  • krishnakumar_R Profile Picture
    108 on at

    @CFernandes  @grantjenkins  - thanks for help.. Vides are awesome.. Here is where i am stuck

    krishnakumar_R_0-1668505321585.png

    after converting to base 64, i get the content but it is a string.. Need them as array so that i can iterate.. The Test file (fed in get file content ) is as below


    Test,Url
    1,google.com
    2,Rediff.com

  • krishnakumar_R Profile Picture
    108 on at

    I am just following what is said here

    https://www.c-sharpcorner.com/article/parse-csv-file-using-power-automate/

    why am I getting error 

     

     

    krishnakumar_R_0-1668596657542.png

     

    Error Message: 
    Unable to process template language expressions in action 'Split' inputs at line '0' and column '0': 'The template language function 'split' expects its first parameter to be of type string. The provided value is of type 'Object'. Please see https://aka.ms/logicexpressions#split for usage details.'.

  • grantjenkins Profile Picture
    11,063 Moderator on at

    Try the following expression instead.

     

    skip(split(base64ToString(body('Get_file_content')['$content']), decodeUriComponent('%0D%0A')), 1)

     

    If we work from the inside out:

    1. It converts the content to base64 string
    2. Splits on new line - using decodeUriComponent('%0D%0A')
    3. Skips the first record since that contains the headers (you likely only want the values)

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard