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,731 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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 529 Most Valuable Professional

#2
Haque Profile Picture

Haque 230

#3
Kalathiya Profile Picture

Kalathiya 217 Super User 2026 Season 1

Last 30 days Overall leaderboard