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 / Parse CSV File using C...
Power Automate
Unanswered

Parse CSV File using Column Header Names instead of column Index in Power Automate

(0) ShareShare
ReportReport
Posted on by
I have a  comma separated csv file like below  
 
EMPIDEmpNameEMPCountryEmpSalary 
1TarunINDIA100
2AlexUS300
3JohnUK200

 

currently we are  reading the same values  in power automate using the compose action  after skipping the first row and splitting the data  rows from the second row using comma(",") based on column Index 0,1,2 etc..

 

{
"EMPID": "@{outputs('splitByComma')?[0]}",
"EMPName": "@{outputs('splitByComma')?[1]}",
"EMPCountry": "@{outputs('splitByComma')?[2]}",
"EmpSalary ": "@{outputs('splitByComma')?[3]}",
}

 

Some the csv file may have the same  columns names but in the different order like below 

 

EmpNameEmpSalary EMPIDEMPCountry
Tarun1001INDIA
Alex3002US
John2003UK

 

so I need a way to get the cell values using Column Headers  instead of column Index in Power Automate

 

Any suggestion or approaches please. 

 

Thanks in Advance,

Tarun.

Categories:
I have the same question (0)
  • takolota1 Profile Picture
    4,974 Moderator on at

    There is a part of this template flow where I take in the header names for an existing Excel file, index them, & match them to my input column header names. You may be able to find some inspiration or something you can use from it.

    https://powerusers.microsoft.com/t5/Power-Automate-Cookbook/Excel-Batch-Create-Update-and-Upsert/td-p/1624706

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