cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

variable does not work when application is published

I have a home screen in my application and when I login I have a variable that receives the value of the user's name and is used within the application.

When I published the application, the variable appears worthless. And in the development environment it works normally.

Could anyone help me with this issue?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Hi @Lourenacdm ,

 

There is an obvious mistake that the Text should be wrapped around double quotes. Please change to use 

Set(username, "Nomedousuario"

If the issue still remains, I prefer the issue is caused by Preview Features and Experimental Features Setting in App Studio.
Please try to toggle off all experimental feature and the following Preview features that may cause this issue.

Snipaste_2020-09-03_14-50-35.png

Sik

View solution in original post

3 REPLIES 3
Highlighted
Memorable Member
Memorable Member

Can you show us the code where you set the variable ?

Highlighted

in propriety onselect of the button "Enter" - Set(username, Nomedousuario

 

The mystery to me is that in the development environment everything is working, it was just publishing that the global variable did not work.

Highlighted

Hi @Lourenacdm ,

 

There is an obvious mistake that the Text should be wrapped around double quotes. Please change to use 

Set(username, "Nomedousuario"

If the issue still remains, I prefer the issue is caused by Preview Features and Experimental Features Setting in App Studio.
Please try to toggle off all experimental feature and the following Preview features that may cause this issue.

Snipaste_2020-09-03_14-50-35.png

Sik

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,828)