I have a question concerning how global variables work within power apps: If a global variable is defined, or altered, in one session of using the application and then the application is closed, will that global variable stay the same for the next session or user that accesses the app? For example, I have a rudimentary permissions feature in my app. If I were to add John, Joe and Josh to a collection called "Admins" during one session of using the app and then restart the application, would the same people still be in that collection? I'm running into an issue right now where my power app seems to be emptying the collection every time I try to restart program but I'd like it to stay the same even after I leave the app. As of right now I'm not sure if there is an issue with instantiating/altering the collection or if I just need to make another table in dataverse that can be edited for permissions across the app.
Solved! Go to Solution.
Any data stored with Set(), UpdateContext() or Collect() are all in client memory of the active session, cannot be accessed by another user's session, and will be destroyed when the session ends.
Yes, you will need a new table in your data source for managing custom permissions, or use a connector like Office 365 Groups to manage role based access by AD group membership.
Any data stored with Set(), UpdateContext() or Collect() are all in client memory of the active session, cannot be accessed by another user's session, and will be destroyed when the session ends.
Yes, you will need a new table in your data source for managing custom permissions, or use a connector like Office 365 Groups to manage role based access by AD group membership.
User | Count |
---|---|
122 | |
87 | |
86 | |
75 | |
67 |
User | Count |
---|---|
214 | |
181 | |
137 | |
96 | |
83 |