Showing results for 
Search instead for 
Did you mean: 
Level 10

Re: Global Variable works on Desktop but not on Phone

@Anorakman wrote:


Anyone got any thoughts on how to work around this problem until it is fixed?  If it is fixed?


Hi Anorakman,

Thank you for providing steps for replication. That helped a lot and gave me a good sense of how and why you were encountering this issue. @KroonOfficeSol, I appreciate that you stepped up and offered help.


I was able to replicate the issue on iOS and I have two comments:

  1. This can be solved with best practices. When working within a Gallery, I set the global variable to ThisItem instead of Gallery.Selected. ThisItem is designed for citing child content whereas Gallery.Selected is for referencing the gallery from controls outside the gallery. 
  2. It appears like the action is being activated before the row in the gallery is considered "selected." This explains how the variable seems to be behind by one step. It does not register the selection until after the actions are performed.

Let me know if that helps.


Mr. Dang



Microsoft Employee
Level 10

Re: Global Variable works on Desktop but not on Phone

He Mr Dang,


This is indead a nice improvement and a better way to fill the Global variable, nice. But wouldn't still the Gallery be filtered on screen entry or is this update preformed before the screen to become visible? How does PowerApps handles this in the background?



Level: Powered On

Re: Global Variable works on Desktop but not on Phone

Many thanks.  Using the ThisItem reference works.  Clearly the Gallery.Selected value is updated after the action to Set the global variable is completed.


Only question is why this behaviour is inconsistent between iOS and pc browser.

Helpful resources


Watch Sessions On Demand!

Continue your learning in our online communities.


PowerApps Monthly Community Call

Tomorrow, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Power Platform World Tour

Coming to a city near you


PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join PowerApps User Group!!

Connect, share, and learn with your peers year-round


Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 232 members 4,053 guests
Please welcome our newest community members: