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 / Delegation issue - Sor...
Power Apps
Answered

Delegation issue - Sort gallery with Dataverse relationship

(0) ShareShare
ReportReport
Posted on by 187

Hello everyone,

 

I am building a Power Apps (canvas) with Dataverse as data source.

 

Here is the code I would like to fix (I have the same issue in other places in the app) :

 

Sort(
 Filter(
 Commandes,
 [Delegable filters]
 ),
 Contact.'Full Name',
 SortOrder.Ascending
)

 


My problem is that Contact.'Full Name' is not delegable, is there a way to make it delegable ?
I tried using AddColumns, It doesn't show a delegation warning, but it still wasn't delegable.

Thanks in advance for any advice !

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @CharlesPP ,

    That is one of the main issues with complex field types (and one of the reasons I do not use them unless absolutely necessary) - you cannot sort by them in a Delegable manner. Your best option is to make this a Text field.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • CharlesPP Profile Picture
    187 on at

    Thanks @WarrenBelz , so my only solution, if I understand correctly, is to have a text field that copies the value of Contact.'Full Name', thanks to a Flow for example.

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @CharlesPP ,

    You could simply have a Text field (hide it on the Form) and have the Default of the Text box

    ThisItem.Contact.'Full Name'

    then sort by that

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • CharlesPP Profile Picture
    187 on at

    Thank you for your answer. I don't really understand how to set this up, I don't see how Sort() can filter on anything other than a column in my table, could you give me more details? Thank you.

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    @CharlesPP ,

    I am saying add a Text field to your data source, put it on the Form and hide it and have the Default as I posted - you would then have a Text field with the value you need to sort as it would save this value each time the Form is submitted.

  • CharlesPP Profile Picture
    187 on at

    Ahh ok I can see that thanks, that's a good solution. Have a nice day!

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard