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 / Passing Configuration ...
Power Apps
Answered

Passing Configuration to PCF Components

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all,

 

Can anyone help me out here?  I'd like to pass some configuration to a PCF component (e.g. drop a control onto a model-driven form, then click properties and provide a string or numeric value).

 

Where do i start?

 

Cheers,

 

Andrew

I have the same question (0)
  • Hemant Gaur Profile Picture
    Microsoft Employee on at
    Not sure I understand, if you are wanting to add input property to the component whcib can be configured at the control configuration time , you can add a property node with input type and data type to the manifest. If at the runtime you expect end user to provide some value than it can be HTML input control. Can you elaborate bit more and I can help?
  • Verified answer
    Hemant Gaur Profile Picture
    Microsoft Employee on at
    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/property

    Reference doc for the additional input properties. Field control can have multiple input properties, please see bullet graph oob control for reference.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    "you can add a property node with input type and data type to the manifest"

     

    I think that's the answer i'm looking for Hemant.  As you can tell I'm 'really' new to how this all works.

     

    So if i wanted to say add a Theme Color parameter and a Number of Rows paramter it'd be something like:

     

    <?xml version="1.0" encoding="utf-8" ?>
    <manifest>
     <control namespace="lyf365" constructor="HelloWorld" version="0.0.1" display-name-key="HelloWorld_Display_Key" description-key="HelloWorld_Desc_Key" control-type="standard">
     <!-- property node identifies a specific, configurable piece of data that the control expects from CDS -->
     <property name="sampleProperty" display-name-key="Property_Display_Key" description-key="Property_Desc_Key" of-type="SingleLine.Text" usage="bound" required="true" />
     <property name="themecolor" display-name-key="Property_Theme_Color_Display_Key" description-key="Property_Theme_Color_Desc_Key" of-type="SingleLine.Text" usage="bound" required="true" />
     <property name="numberRows" display-name-key="Property_NumberRows_Display_Key" description-key="Property_NumberRows_Desc_Key" of-type="SingleLine.Number" usage="bound" required="true" />
  • Hemant Gaur Profile Picture
    Microsoft Employee on at
    Usage input if this is just used as read only.

    usage - The usage attribute identifies if the property is meant to represent an entity attribute that the component can change (bound) or read-only values (input) bound, input or output.

    You are doing great . I assume this is field control. Data set needs it inside data-set node. One more thing, since you are changing control definition the update might not work and you will need to unconfigure and remove old version.
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ah perfect, thanks for the tips Hemant.  That's really helpful.

  • Hemant Gaur Profile Picture
    Microsoft Employee on at
    And of-type = Whole.None

    Please see https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/property for supported CDS types
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the tip Hemant.

     

    Getting there, just uploaded v1 of my control onto Github - in case anyone wants to see some bad typescript 🙂 

     

    Number Button Selector.

    http://365lyf.com/powerapps-component-framework-pcf-number-button-selector/

     

     

  • Hemant Gaur Profile Picture
    Microsoft Employee on at
    Congratulations Andrew 🎉. Hardest part is behind us now (getting the first control built :)).

    Looking forward to more cool ones from you. As next step, I would recommend looking at data set (we have samples in preview) and also the framework API typing file to understand broader capabilities. You can pick up your favourite lib/service sample and try making it a PowerApp component.

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 273

#3
Kalathiya Profile Picture

Kalathiya 232 Super User 2026 Season 1

Last 30 days Overall leaderboard