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.
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.
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.
3. Now, to replace the name, click on Replace, provide the replaced variable, and click on the Replace all button.
4. You’ll get a confirmation message; click on the Replace button.
5. Then, you’ll see the renamed variable name.
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:
- Power Apps home screen based on different screens
- Share Canvas App With a Microsoft 365 Group in Power Apps
- Power Apps search SharePoint list
- Power Apps naming conventions
- Power Apps pop-up message
- Create a Dropdown With Other Option in Power Apps
I am Bijay a Microsoft MVP (10 times – My MVP Profile) in SharePoint and have more than 17 years of expertise in SharePoint Online Office 365, SharePoint subscription edition, and SharePoint 2019/2016/2013. Currently working in my own venture TSInfo Technologies a SharePoint development, consulting, and training company. I also run the popular SharePoint website EnjoySharePoint.com