cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MrEdward
Helper II
Helper II

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
EricLott
Super User
Super User

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

3 REPLIES 3
EricLott
Super User
Super User

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

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/

Thank you @Mr-Dang-MSFT , is there any documentation to it please? I've just tried and it wasn't working. Maybe I'm doing something wrong?

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,300)