Skip to main content
Community site session details

Community site session details

Session Id : 5ebPIlVRhFChJz/2LZABCP
Power Apps - Power Apps Pro Dev & ISV
Answered

Pass the Collection as an input from CanvasApp to the PCF Control

Like (0) ShareShare
ReportReport
Posted on 27 Oct 2021 12:06:57 by 39

Hi All,

I want to pass the Collection present in my CanvasApp as an input to the PCF Control of the field type. I have to implement some logic using the data present in the collection, at the PCF end. I thought to pass the separate value of each field of the collection but it is becoming a strenuous task as there are more than 100 values to pass in that way. I am looking for some way to pass the entire collection as input from CanvasApp to PCF Control. Is there any way to achieve that?

 

Feel free to suggest your ideas to achieve the above requirement.

Thanks in advance.

  • optimisticdipak Profile Picture
    39 on 27 Oct 2021 at 12:36:59
    Re: Pass the Collection as an input from CanvasApp to the PCF Control

    Thanks, @DianaBirkelbach for your reply. 

    I have tried your suggested solution and It worked for me. By using the PCF Dataset type component, we can give CanvasApps Collection as an input to PCF Control and use those values.

     

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on 27 Oct 2021 at 12:25:19
    Re: Pass the Collection as an input from CanvasApp to the PCF Control

    Hi @optimisticdipak , 

     

    what about a second property for your PCF, of type dataset. As far as I unfderstand it, you should be able to pass the collection to your PCF that way.
    Here is a tutorial in the docs: https://docs.microsoft.com/en-us/powerapps/developer/component-framework/tutorial-create-canvas-dataset-component?WT.mc_id=BA-MVP-5004107#deploying-and-configuring
    But I must admit that I haven't tried it out this property combination.

    Hope this helps!

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Loading complete