Skip to main content

Notifications

Community site session details

Community site session details

Session Id : oznS3slqnMNUd+eS1N0pFu
Power Apps - Building Power Apps
Answered

How to search for variable in code?

Like (0) ShareShare
ReportReport
Posted on 25 Sep 2023 06:48:39 by

Is it possible to to search the source code in a PowerApps app?
I need to find the variable I created some time ago. 

 

Thanks in advance!

  • blabla70 Profile Picture
    on 25 Sep 2023 at 08:04:24
    Re: How to search for variable in code?

    Thank you for the answers.

  • Verified answer
    WarrenBelz Profile Picture
    146,670 Most Valuable Professional on 25 Sep 2023 at 07:25:23
    Re: How to search for variable in code?

    Hi  @blabla70 ,

    If you use the bottom icon, you can find all instances of the collection (or any other code) usage in the app.

    SearchApp.jpg

    Also in the icon tow above that (x), you will find the Variable list

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Verified answer
    AndrewR1 Profile Picture
    1,572 Super User 2025 Season 1 on 25 Sep 2023 at 07:14:26
    Re: How to search for variable in code?

    Hiu @AARON_C You can use the x in the left hand menu to view variables that are with in your canvas app you can also search through these using the search box at the top of the menu. 

    AndrewR1_0-1695625960883.png

    Alternatively if you have a large piece of code and want to iterate through where that variable is you can also click in the code and press Ctrl F and this will bring up a window to search through that section of your code only showing each instance where the variable appears:

    AndrewR1_1-1695626042724.png

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.


    Thanks
    Andrew

  • AARON_C Profile Picture
    2,233 Most Valuable Professional on 25 Sep 2023 at 06:54:45
    Re: How to search for variable in code?

    Hi @blabla70,

     

    You click on the (x) icon in the left-hand menu to see all your variables and collections.

     

    Or

     

    You can use the search icon and search the name of the variable.

     

    Please tick Accept as solution if the answer is useful.

    Thanks,

    @AARON_C 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started