Notifications
Announcements
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.
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.
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.
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.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 796 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
Power Platform 1919 268