How to Rename Variables in Power Apps?

Last week, I developed a Power Apps application called Leave Management. To maintain the same font style size and colors, I stored those values in global variables and used them throughout the application. Later, I was required to change the variable names, which needed to affect everywhere I used.

In this article, I will explain how to rename variables in Power Apps.

Rename Variables in Power Apps

I have Power Apps global variables in the image below that store font styles, sizes, and colors. We’ll change the “gblAppFonts” variable to “globalAppFonts.” I have used this variable for font styles, sizes, and weights almost throughout the application.

rename the global variables in powerapps

Follow the steps below to achieve this.

1. Open the Power Apps application on the left navigation and click on the search icon. It displays two options Find and Replace.

how to rename variables in power apps

2. Provide the variable name on the search bar under Find. It displays the variable names where it is present, also like in the image below.

rename a local variable in power apps

3. Now, to replace the name, click on Replace, provide the replaced variable, and click on the Replace all button.

how to rename local variable in powerapps

4. You’ll get a confirmation message; click on the Replace button.

how to rename global variable in power apps

5. Then, you’ll see the renamed variable name.

power apps rename global variables

This way, we can rename variable names in Power Apps. In the same way, we can also rename the collection name.

I hope you understand how to rename the Power Apps variables. Follow this article while trying to rename the variables in the Power Apps application.

Also, you may like:

>