cancel
Showing results for 
Search instead for 
Did you mean: 

Able to rename variables in File -> Variables page

It should be great if you let us rename our variable in page File -> Variables.

In this case, renaming the variable here will auto rename all variables in our formulas. We do not have to go into each formula to rename our variables. When the app gets bigger and complex, this will be handy. Ian

Status: New
Comments
Boneckrh19
Kudo Kingpin

Several other people have proposed this idea. This one has the most votes currently:

 

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

Let's try to get this idea more traction!

mdevaney
Super User

@aow 
Variables can now be quickly renamed with Power Apps new find & replace feature.  You can type in a variable name and then click replace all.  It even works for collections too.  I wrote an article how to do it and I'll provide a link below.

Rename Variables In Power Apps With 1-Click
Link: https://www.matthewdevaney.com/rename-variables-in-power-apps-with-1-click/

HartHenry
New Member

I just responded to the 1-click website about renaming, using the search and replace feature may cause an issue for developers, it could be extremely dangerous advice for a novice. If you have variables named CarsOnTheRoad and one named Carson, and you want to change Carson to Johnny, then unexpected results will occur. You will be renaming variables that you do not want to rename – so, I would advise against this suggestion. Unexpected results may occur