web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / help for next person d...
Power Apps
Unanswered

help for next person dealing with components and collections/globals

(0) ShareShare
ReportReport
Posted on by 4

Correcting my earlier post which turned out to be user error on my part. Notes for the next person:

 

Not sure if this is new since the Access app scope feature was introduced, but you can use collections and globals within a component...they are just now locally scoped (unless you enable the new feature and want to reach into your app). You still see warnings because the checker doesn't know you aren't trying to work with an app-scoped collection. Tabular data can be sent in as input params and then dealt with within the component. If you want to manipulate it, I would assume you can output a modified table (have not tried that). 

 

Where I was missing a step is I had logic to create/populate some things using OnReset and you have to manually Reset(<component name>) to fire that during development (vs. having an ability to run the On Start code for an app). That would be a nice tweak since that dev-time need to see how your component initializes is still valuable. 

 

From the latest docs the supersedes a bunch of prior threads saying collections and components don't mix:

-------excerpt--------

When Access app scope is turned on, the following are accessible from within a component:

  • Global variables
  • Collections
  • Controls and components on screens, such as a TextInput control
  • Tabular data sources, such as Dataverse tables

When this setting is turned Off, none of the above are available to the component. Set and Collect functions are still available but the resulting variables and collections are scoped to the component instance and not shared with the app.

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @chall-stacker :

    Thank you for sharing, it may be helpful to others.

    Best Regards,

    Bof

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard