web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Reuse Variable

(0) ShareShare
ReportReport
Posted on by 521

Hi 

Can you please tell how can I re use the variable which I saved on start app, i need it to use it in my form example i have dropdown which holds all users and I have added text box input so I need when select the user dropdown to reference the text input the address on select the dropdown the text input box will show the address of the selected 

 

Set(glbCustomers,Customers.Addresss)

 

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @PowerApps11 :

    Do you want to update the value of 'glbCustomers' when user select a new address on the dropdown?

    If so,you could set the dorpdown's OnChange property to:

    Set(glbCustomers,Self.Selected.Addresss)

    Best Regards,

    Bof

  • PowerApps11 Profile Picture
    521 on at

    Hi @v-bofeng-msft 

    Sorry for delay for replaying but is not what I wanted , some reason someone accepted and close the post ? 

    let me explain my intension normally if I need to get an particular details like address of an user to searched from the main list against an text input like I have a joe jones, need to get his address I need to do lookup from the user list Lookup(Userlist,Name= txtUserbocx.text ).Address, which will give me the address, but I would like to minimize the calls to the database and add on AppStart  so I run only one time like an Variable, please correct me if am wrong 
    so now on the form how can i use that variable to reuse within the app  

    Thank you 

  • Bipin D365 Profile Picture
    971 on at

    Hi @PowerApps11 ,

     

    Instead of creating variable, you can go with Collection. So on start you can collect your data as below-

     

    ClearCollect(glbCustomers,Customers.Addresss)

     Now you can use this collection in your form on any screen. You can do lookup, apply filter as well.

     

    Good Luck!

     

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: https://xrmdynamicscrm.wordpress.com/

  • PowerApps11 Profile Picture
    521 on at

    Hi @bipinshan 

    Can you give me an example how can I filter after adding AppStart?

    Thank you 

  • Bipin D365 Profile Picture
    971 on at

    Hi @PowerApps11 ,

     

    Same as you mentioned in your reply

    Lookup(Userlist,Name= txtUserbocx.text )

    Instead of UserList, use collection name.

    https://www.matthewdevaney.com/powerapps-collections-cookbook/

     

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: https://xrmdynamicscrm.wordpress.com/

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard