Announcements
I have a modern table that uses a SharePoint list as a data source. In this list, there is a column called "PersonnelName". I just want that column to be "Name". I have RenameColumns(MyDataSource,"PersonnelName","Name") in the Items property for the table, but I get an error "The function RenameColumn has some invalide arguments". How can I do this just to rename a column? It is too bad that I can't do it from the field selection for the table.
hey @iskguy
whe u rename it in the sharepoint list itself it does not go thru to you app.
what u can do is click on the input control and select the text property of it and just put whatever you want into " " so your case would be "Name". This works for normal controls.
Not sure if it is also possible with modern controls
Let me know if my answer helped solving your issue.If it did please accept as solution and give it a thumbs up so we can help others in the community.Greetings
Thanks for the response. I did not rename the column in SharePoint itself, but I want to rename it in a modern table. I am trying to use the table instead of a gallery, but I also tried it with a gallery and have the same error. Maybe I do need to check the SharePoint column itself to see if that is its exact name.
Actually I found the issue, but still, thanks for the response. I will assume that SharePoint lists have a system column called "Name", so when I was trying to Rename PersonnelName to just Name, there was a conflict. I saw a link to the error (in the vague error description) and it opened the specific error. Now it seems to be working. I just renamed the column to "Personnel" instead of "Name".
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 224 Super User 2026 Season 2
WarrenBelz 189 Most Valuable Professional
Mohsin Ali 126