web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PCF Output Property Of...
Power Apps
Unanswered

PCF Output Property Of Type "Record"

(0) ShareShare
ReportReport
Posted on by 41

I have a radio input PCF component and I'd like to return the selected option in the output properties - Whether that's as a Record type or some other way.

I've checked the documentation and it appears this isn't support, but I wanted to double check with the community to see if anyone has achieved something similar.

I guess I could return the object as SingleLine.Text then JSON it, but that's not very pleasant for our users.

 

Thanks in advance.

I have the same question (0)
  • cchannon Profile Picture
    4,702 Moderator on at

    Yes, JSON is your best bet for any complex return type. But, it's not as bad as it sounds: In a canvas app, you can transform that object any way you want to display something more useful than just simple JSON.

  • MCrawley2 Profile Picture
    41 on at

    Thanks, I was hoping for a better option though - Although its a simple concept to any developer, we want to have non-devs using MSPP and having to deal with JSON serialisation/deserialisation just seems unncessessary to me. This whole "citizen developer" concept fails as soon as you want to do something that isn't very basic data capture.

  • cchannon Profile Picture
    4,702 Moderator on at

    well, what were you hoping it would be? In the Canvas App you would be setting optionset values using values anyway. If you only need a value, then send a value. If you need a value and a type or a name, then send those. You could always have more than one Output, too, so you could have an OutputName and OutputValue if you think that would be easier for people to work with, rather than JSON.

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @MCrawley2 , 

     

    I agree with @cchannon , if we talk about output properties: you can define as many as you want.

     

    I would like to understand more about your issue. Are you in a Canvas App ( since you talk about output instead of bound property)?

    Do you have a dataset PCF and try to return the selected record? If that's the case, you don't need an output property, you just need to select the record using tha dataset sdk methods (https://docs.microsoft.com/en-us/powerapps/developer/component-framework/reference/dataset/setselectedrecordids?WT.mc_id=BA-MVP-5004107)

     

    If you have another use case, maybe you can help mr understand in more detail.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard