Is there a way to search all code in a PowerApps app? If not, is there a way to export all code so I can search it then? It is difficult following someone elses code and trying to find where some variable is being updated. Any help would be greatly appreciated.
Solved! Go to Solution.
Thnaks for your idea.
But currently there is no proper way to search the code directly within the App Editor.
For Variables or collections, you could find it usage under
File->Variables (Collections), select each one, and it will display the used place within the App:
If this can't meet your requirements, then please consider rise your requirements as an idea under PowerApps idea forum:
Can you be more specific how to find where collections are used? I can see where variables are used, but your instructions for collections don't seem to provide the same informaiton. It just lists the first five items in the collection, not where it is used.
This is kind of an old post and I don't know if the interface has changed or not since the above info was posted, but you are correct, Collections just shows the first 5 records. What I do if I need to search badly enough is follow the below steps.
This file is all the code to your app in JSON format. I find JSON hard to work with so I convert it to XML for searching. I use https://codebeautify.org/jsontoxml to convert it and then copy the XML text to something like Notepad++ to perform my searches. Most likely, your JSON file is a pretty good size to be copying and pasting so give the codebeautify site a minute to process after pasting and before clicking the convert to xml button. This is a lot of work to go through just to search so I only use it as a last resort. I hope someone else can post a better way, but I have not found one. Be aware that you cannot modify the files outside of the ZIP and then import back in to PowerApps as that will fail. If you need to do that, search youtube as there are a couple tutorials on how to accomplish that.
I hope this helps you and I also hope someone else can post a better way.
Check it out!
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand