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 Platform Community / Forums / Power Apps / how to Convert local v...
Power Apps
Answered

how to Convert local variable to gobal variable in PowerApps ?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

i am new to power apps, help me with the following code below ,where i want to set my user variable 'userinfo' to global variable in power apps
If(!IsBlank(LookUp(tbl_ClientDetails,ClientEmail= TextInput1_4.Text And Password=TextInput1_5.Text).ClientID),Navigate(FeedBack_Screen,Fade,{userInfo:LookUp(tbl_ClientDetails,ClientEmail= TextInput1_4.Text And Password=TextInput1_5.Text).ClientID}),UpdateContext({ShowForgetmsg:true}))

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    36,785 Super User 2026 Season 1 on at

    Hi @Anonymous 

    This will set userInfo as a global variable.

    If(!IsBlank(LookUp(tbl_ClientDetails,ClientEmail= TextInput1_4.Text And Password=TextInput1_5.Text).ClientID),
    Set(userInfo, LookUp(tbl_ClientDetails,ClientEmail= TextInput1_4.Text And Password=TextInput1_5.Text).ClientID);
    Navigate(FeedBack_Screen),
    UpdateContext({ShowForgetmsg:true})
    )

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard