cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Gallery inside of Component with SharePoint list connected

Hi,

 

I'm trying to figure out how to build a Component with a Gallery inside that is connected to a SharePoint list (EdwardTestList).

I get errors when I try, but when I connect the gallery to collections, it works fine. Anyone have any idea?

error.png

 

Any help is appreciated, thanks! 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resident Rockstar
Resident Rockstar

Re: Gallery inside of Component with SharePoint list connected

You'll want to set up an input property in your component that accepts the collection once it's in use in your app. The component itself doesn't need to reference the collection, since that would make it less modular (the idea behind components is that they can be used across different screens as well as apps). You'll then use this input property as the reference for the collection.

2020-02-19 16_52_56-InternalApps - Microsoft Visual Studio.png

I'd like to add that there is currently a bug affecting components that Microsoft is working on. Components are not working well with global variables (Set), but they seem to be working with Collections and local (UpdateContext) variables

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

View solution in original post

2 REPLIES 2
Highlighted
Resident Rockstar
Resident Rockstar

Re: Gallery inside of Component with SharePoint list connected

You'll want to set up an input property in your component that accepts the collection once it's in use in your app. The component itself doesn't need to reference the collection, since that would make it less modular (the idea behind components is that they can be used across different screens as well as apps). You'll then use this input property as the reference for the collection.

2020-02-19 16_52_56-InternalApps - Microsoft Visual Studio.png

I'd like to add that there is currently a bug affecting components that Microsoft is working on. Components are not working well with global variables (Set), but they seem to be working with Collections and local (UpdateContext) variables

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

View solution in original post

Highlighted
Power Apps
Power Apps

Re: Gallery inside of Component with SharePoint list connected

Hi @MrEdward,

As of December, API connectors are the first ones that work inside components right now:

https://powerapps.microsoft.com/blog/canvas-components-get-support-for-connectors/

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (10,631)