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 / Support for Multiple D...
Power Apps
Unanswered

Support for Multiple Data Types

(0) ShareShare
ReportReport
Posted on by 13

Can I add elements of different data types in a sing;e type group in ControlManifest.xml?  @HemantG 

<type-group name = "MultipleTypes">
      <type>SingleLine.Text</type>
      <type>SingleLine.URL</type>
      <type>SingleLine.TextArea</type>
      <type>Multiple</type>
<type> Whole.None </type>
<type> Float </type>
    </type-group>
I have the same question (0)
  • Ben Thompson Profile Picture
    1,400 on at

    I suspect you would be better off with multiple controls as you can only bind to one type at a time see https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/property#remarks 

  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    This definitely works. I used it in one of my controls - https://github.com/AndrewButenko/CompositeAddress_PCF/blob/master/CompositeAddress/ControlManifest.Input.xml

    Here is an example:

     <type-group name="StringOrOptionset">
     <type>SingleLine.Text</type>
     <type>OptionSet</type>
     </type-group>
     <property name="state" display-name-key="State/Province" description-key="State/Province" of-type-group="StringOrOptionset" usage="bound" required="false" />

     

    But which field type is bound to input you will have to analyze during runtime of the control.

  • Ben Thompson Profile Picture
    1,400 on at

    Trust me to follow the out of date documentation. 

     

    Looking at my link it's a typo in list of types. Float is not an option it should be FP.

     

     

    <type-group name = "MultipleTypes">
     <type>SingleLine.Text</type>
     <type>SingleLine.URL</type>
     <type>SingleLine.TextArea</type>
     <type>Multiple</type>
     <type>Whole.None</type>
     <type>FP</type>
    </type-group>

     

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    HI @navneet_singh ,

    Could you please share a bit more about your scenario?

    Do you want to specify different data type within the <type-group> node, e.g. Whole.None and SingleLine.Text in same type group?

     

    If you want to specify different data type within the <type-group> node, e.g. Whole.None and SingleLine.Text in same type group, I afraid that there would have some issue with it.

     

    When you specified Whole.None and SingleLine.Text in same type group, they would not be considered as compatible types. The types considered compatible as below:

    1. Strings: SingleLine.Text, Multiple, SingleLine.TextArea, SingleLine.Email, SingleLine.Phone, SingleLine.URL, SingleLine.Ticker.
    2. Numbers: Decimal, Floating Point, Whole.None, Currency.
    3. Dates: DateAndTime.DateAndTime, DateAndTime.DateOnly.

    Please check the following article for more details:

    https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/type-group#child-elements

     

    If the types listed in the group are not considered compatible, then the parameter will be treated as the first type listed in the type-group.

    Note: If you specified different data type within the <type-group> node, e.g. Whole.None and SingleLine.Text in same type group, there is no error with this configuration, but only the first type listed within this type group could be applied to current parameter.

     

    Best regards,

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard