web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Rename Columns

(0) ShareShare
ReportReport
Posted on by 525

Hi,

 

I'm having a form. on success of form i'm getting the last submitted record to variable i.e. on success of form Set(vMyRecord,Form1.LastSubmit)

 

Now, i want to rename ID column to Product ID. 

Something like RenameColumns(vMyRecord,"ID","ProductID")

 

but it is throwing an error stating. invalid argument type record. expected table instead. any thoughts on this to resolve ?

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    We can rename the column on the data source column and assign to collection like

     

    ClearCollect(
    NewCollection,RenameColumns(Accounts,"accountnumber","accountno"))

     

    In your case, you need to assign to another variable.

     

    Set(ProductID, vMyRecord);

     

     

  • Krishna_R Profile Picture
    525 on at

    Hi @StalinPonnusamy 

    in my case it is a variable. not the collection. is there a way where try for record ?

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    There is no way to rename the variable. Our community users created ideas to add this functionality.

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Provide-a-simple-way-to-rename-variables/idi-p/315623

     

    Please vote if you support it.

     

    If you like this post, give it a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

     

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard