Hi,
For the last months I've been working on an advanced survey app in Powerapps. In this app I select answers from a dropdownmenu and submit them top a Sharpoint list via the Patch() function.
Like this:
Patch(Werkplekinspecties; Defaults(Werkplekinspecties); {Title: Meerkeuze_2_overleg.Selected.Value; Aanmelding: Meerkeuze_1_aanmelding.Selected.Value})
This worked fine until a few days back. Now the Selected.Value function doesn't exist anymore, and my app doesn't function.
I tried to use the new Selectedtext function instead of (the now non-existent) Selected.Value function. Sadly this doesn't work on my Sharepoint patch function.
I get the following error message:
The type of this OData__x0061_id9 argument does not match the expected type Text. Type Record found.
Has anyone encountered the same problem? Does anyone know the solution to it?
Thanks in advance!
g
Thanks for all the comments and my apologies for not responding ealier.
I have already found the solution. The Radio items were connected to an Excel tabel.
To patch the radio control to a SharePoint list I had to use the following formula instead:
Radio.Selected.Column2
This works fine and gives the same result as the Radio.Selected.Value gave me before.
I do think it's odd that Microsoft would suddenly change this without giving a notice or an explanation.
One further point... Sometime Selected.Value works. I haven't been able to determine when it does and when it doesn't. I start with Selected.Value. If that doesn't work, I use SelectedText.Value.
I've noticed the same issue recently. I've had to replace Selected.Value with SelectedText.Value to get it to work correctly. My concern, though, is that SelectedText has been deprecated for some time now.
Thanks for posting in the community @Harm_Jan - are you still experiencing this issue? Can you review the above replies and update the thread if they were helpful?
Thank you,
@Anonymous
Hi @Harm_Jan ,
Based on th issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. The Radio1.Selected.Value formula works well within my app.
The error message that you mentioned seems to tell that the field within your Patch function is required to provide a Text value, but you provide a Record value for it.
If you want to use the new Selectedtext function to get the selected value from the Radio control, please use the following formula:
Radio1.SelectedText.Value /* <-- rather than Radio1.SelectedText */
Please take a try with above formula within your Patch function, check if the issue is solved.
If the issue still exists, please consider re-create a new app based on your SP List, then try above solution again, check if the issue is solved.
Best regards,
I did a little test with the Radio button control and I could get both "Radio1.SelectedText.Value" and "Radio1.Selected.Value" to return the selected value.
I am not seeing the Selectedtext property as part of my dropdown or combo box control and my ....Selected.Value still works as expected. What type of control is Meerkeuze_1_aanmelding?
WarrenBelz
42
Most Valuable Professional
mmbr1606
41
Super User 2025 Season 1
MS.Ragavendar
36