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