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 / Getting the type of an...
Power Apps
Unanswered

Getting the type of an Input Parameter at runtime

(1) ShareShare
ReportReport
Posted on by 87

Hello.

When trying to get the type of an input parameter (eg. SingleLine.Text), there is no information on context.parameters.TextProperty.type.

When doing the same in the harness, the information is there.

Does anyone know if there is any other way to get the type of an input parameter at runtime?

I have the same question (0)
  • a33ik Profile Picture
    3,306 Most Valuable Professional on at

    Hello,

    I used the same approach in this component - https://github.com/AndrewButenko/CompositeAddress_PCF/blob/master/CompositeAddress/index.ts and it worked fine for me. I was able to check if the bound field is a string or optionset.

  • Kristoffer88 Profile Picture
    87 on at

    Thanks.

     

    I will take a look again and reply back.

     

     

  • Kristoffer88 Profile Picture
    87 on at

    Hi Again.

     

    I can see  that this issue only appear with additional properties on a PCF that targets data-sets and not fields.

     

    forum.png

     

  • Kristoffer88 Profile Picture
    87 on at

    Hope i can find a solution to this problem.

     

     

  • rexkenley Profile Picture
    203 on at

    @Kristoffer88 

     

    Why do you need to get this info dynamically? It doesn't change. 

  • Kristoffer88 Profile Picture
    87 on at

    I need this for a configuration module for our components.

     

    We need some more advanced way to configure our components, like lookup fields etc.

     

    To make it as easy as possible, i want to fetch the configuration that is used now, and parse it into the configuration module and then only override the inputs that is not supported ( Lookup.Single ) and other things

  • rexkenley Profile Picture
    203 on at

    @Kristoffer88 

     

    You can try reading the ControlManifest.xml file and getting the information that way.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard