Showing results for 
Search instead for 
Did you mean: 
jernejp Helper IV
Helper IV

Renaming multiple fields and joining tables



I have a table PersonList with fields: Contact_Id, Contact_Name and Contact_Email
Then I have a table Employees with fields: Employee_Id, Employee_Name, Employee_Email and Status


How would I go about renaming Contact_id to ID and Employee_Id to ID (and doing the same for other columns as well) and then joining everything in one table?
The solution I have for now is to set temporary tables and rename columns one by one (for example):

Set(PersonListTemp; RenameColumns(PersonListTemp; "Contact_Id"; "ID"));;

But there has to be a way where I don't have to make so many new tables?


Thanks in advance!

Community Support
Community Support

Re: Renaming multiple fields and joining tables

Hi @jernejp ,

Could you please share a bit more about your scenario?

Do you want to rename column names within your underlying tables (original tables)?


If you want to rename column names within your underlying tables (original tables), I afraid that there is no way to achieve your needs in PowerApps currently.


As an alternative solution, you could consider create a temporary table for each of your original table with renamed columns, then merge the temporary tables into single one table.


I have made a test on my side, please take a try with the following workaround:

Set the OnSelect property of a button to following:

               RenameColumns(PersonList, "Contact_Id", "ID", "Contact_Name", "Name", "Contact_Email", "Email"),
RenameColumns(Employees, "Employee_Id", "ID", "Employee_Name", "Name", "Employee_Email", "Email") )

Then you could use the MergedTable as data source within your app.

Note: The PersonList represents your Person List table, the Employees represents your Employees Table.


More details about the RenameColumns function, please check the following article:

RenameColumns function


Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

‘Better Together’ T-Shirt Contest – Winner Announced!

‘Better Together’ T-Shirt Contest – Winner Announced!

And the winner is...


New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,671)