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 Apps / Changing column headers
Power Apps
Unanswered

Changing column headers

(0) ShareShare
ReportReport
Posted on by 124

Using a combination of PowerApps and Power Automate, I have managed to transfer a collection to a Excel file using a flow. In order to 'force' the columns to be in a specific order, I have numbered the column header names by a preceding number so the columns are now in the correct order when the collection is created. 

 

I now want to change the column headers in the resultant Excel file. Is there a way of doing this either using PowerApps or Power Automate? So for example I want to change

 

"1 - First Name" to "First Name"

Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on at

    I know you can run office scripts from power automate. These scripts are written in what is essentially javascript if I remember correctly. I have used them in google sheets to take a csv ouput from a webpage and formate it to go into sharepoint. Very easy to code and I have some that delete columns, move them, then rename them all in the same script with around 20 lines of code. 

  • HenWang Profile Picture
    Microsoft Employee on at

    Hi @azizrasul ,

     

    Agree with @mmollet  here about the running scripts way to achieve this. 

     

    And just by the way, maybe you can also try below way of creating the table with transferred collection from canvas app:

    HenWang_0-1681722848454.png

     

    I mean, you can directly change any specific column name when creating the table firstly and then add rows into this table.

     

    Best Regards,

    Hen Wang

  • azizrasul Profile Picture
    124 on at

    I have already created a flow (see screenshot below) that exports a data collection from PowerApps to a CSV file using Power Automate. 

     

    Is their a trigger\action that I can use to update cells in the column header row and simply change the current value say in cell A1 to a different value and so on with the rest of the column header names?

     

    azizrasul_0-1681725088568.png

     

     

  • azizrasul Profile Picture
    124 on at

    If I have 1000's of rows of data in a collection, can I transfer the collection in one swipe to the newly created table?

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard