cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AKDeveloper
Frequent Visitor

how to Convert local variable to gobal variable in PowerApps ?

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}))

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

Hi @AKDeveloper 

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})
)

View solution in original post

1 REPLY 1
timl
Super User
Super User

Hi @AKDeveloper 

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})
)

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,556)