I've been working on sort buttons, which aren't a problem, but I've hit a snag. I created a sort button for an added column that is a choice column without issue (like in this thread), but when I tried it for another similar policy, I kept getting this error message for the column I was trying to add. Apparently, this column is a "control" data type which isn't even listed here. I looked at the SharePoint list, and that column is tied to a group in my organization -- I can only assume that this is what "Control" is in this case. I can't find any way to convert these values to text (neither with .Value or with Text()). Does anyone have any solution for dealing with this? The best I can come up with is some sort of duplication of the value in that field in the SharePoint list but as a text value, but I'd prefer if there were a function in PowerApps I could use.
Solved! Go to Solution.
This happens when I try to add a new column which changes the column into text that could be sorted. This function below works (just changed the source name to generic for sharing) until I add the underlined red text. I'm not sure what you mean about what "control/property you've placed it within" -- I didn't create this app, rather editing it for a colleague, but as I said, on the SharePoint end, the column is set to: "Type - Person or Group", and on the PowerApps end is set to: "FieldType: Complex"
SortByColumns(AddColumns(Source Name, "Source", SourceQuarter.Value, "PM Name", AssignedPM.Value), Sortfield, If(SortDirection, Descending, Ascending))
Let me know what else I can clarify. Thanks!
Thank you, @mdevaney ! I appreciate the help and the educational explanation. I'm still figuring my way around the syntax here, so I appreciate the helpful patience.
No problem at all.
I cannot seem to find any documentation for people objects but you can always type AssignedPM. (make sure to type the period too) and then see what fields are available in the autocomplete.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.