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 / Renaming columns in a ...
Power Apps
Unanswered

Renaming columns in a collection

(0) ShareShare
ReportReport
Posted on by 124

I have a MS SharePoint list (SP1) where the column headings are 

 

First Name

Last Name

DOB

Address

Post Code

Colour

_PoweAppsId_

 

However when I create a collection based on the MS SharePoint list, the field names are different e.g.,

 

ClearCollect(NewCollection,ShowColumns(SP1,"Title","field_1","DOB","field_2","field_3","field_4","field_6"))

 

How do change the above ClearCollect line so that I get the same column names as in the MS SharePoint list.

I'm ultimately creating a flow, using Power Automate, to output the collection to a CSV file and at the moment I'm getting the CSV column names 

 

Title

field_1

DOB

field_2

field_3

field_4

field_6

 

Categories:
I have the same question (0)
  • NPrice99 Profile Picture
    1,302 on at

    Hi @azizrasul 

    What are the names of the fields in the sharepoint list ?

     

    These can be found by going to the list settings, if you are using content types, click on "Content Types" or just click on the column and at the right hand side of the url you will find the Sharepoint field name.

     

    You should then be able to use "Rename_column"  in a ClearcOllect or Collect to change the field names.

     

    Regards

     

    Nigel

  • WarrenBelz Profile Picture
    153,049 Most Valuable Professional on at

    Hi @azizrasul ,

    You have created this list by importing an Excel spreadsheet, which has the unfortunate effect of setting the "original" name of the columns field_x. This will cause you a lot of ongoing grief and confusion- I suggest you re-create your list with the names you actually want and paste in the Excel Data afterwards (you can do this in SharePoint "Edit in grid view" about a 100 records at a time)  or if you have thousands of records, with Power Automate.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

     

  • azizrasul Profile Picture
    124 on at

    The names of the column headings are what I want in the SharePoint list. The problem is that the field names change when I create the collection using the SharePoint list as my data source. Hence, I'm not pasting in the data as the data will change from day to day.

  • azizrasul Profile Picture
    124 on at

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard