cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JohnP
Kudo Kingpin
Kudo Kingpin

Patching/Updating collections inside a Canvas Component

I've made a canvas component with a gallery and other controls inside. I'm passing a collection as an input to the Component. However, there seems to be problems if you want to patch/update this collection inside the component. Filtering/sorting etc. works fine, but the patch/update functions gives the error: "The first argument needs to be a collection" (I give the component_1.input_table as the argument).

1 REPLY 1
JohnP
Kudo Kingpin
Kudo Kingpin

Update: Seems like Components support collections even though the documentation states it doesn't!

 

Check the following thread:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Components-and-collection-warning/m-p/537962...

 

Basically you can use Collect/ClearCollect on the component's table inputs. Then you can reference those collections inside the component. It gives some generic warning, but it works 🙂 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,457)