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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / entitylist metadata fe...
Power Pages
Answered

entitylist metadata fetchxml filter with nested link-entities not working

(0) ShareShare
ReportReport
Posted on by 20

Hi, 

 

I have this metadata fetchxml filter that I can't get to working.

It has 2 link-entities, it is starting from the scheduline entity, joining with salesorderdetail entity, and another join with the salesorder entity :

MichielVanduren_0-1640093887416.png

If there something wrong with the syntax?

 

If I try it with one link-entity, it's working.

Starting again from the scheduline entity and joining directly to the salesorder entity.

MichielVanduren_1-1640093999046.png

 

We want to use the first option, as we do not want to link directly between the scheduline and salesorder entities.

Any ideas?

 



 

Categories:
  • Verified answer
    Christian Leverenz Profile Picture
    1,214 on at

    Hi @MichielVanduren ,

    Do you get an errormessage or does it simply not work?

     

    I would not use like in conjunction with "" (well, it works with one linked entity less, so shouldn't be the problem) - i would prefer not-null as an operator 🙂 .

     

    Have you set up ALL entitypermission for all tables? if not, it may fail.

     

    It could be, that the permissionsystem from portals spoiles it up. Have you tried giving global read to the involved entities? (Yes, you do not want this, i know 🙂  - it's just for a test.) When this works, adding entitypermissions could go wrong.

     

    We had issues especially, when i set up too many entitypermissions. I got an errormessage that the number of allowed link-entities was exceeded...

     

    Hopefully, this points in a solution direction.

    Have fun,

      Christian

     

    PS i try this kind of things out in the xrm-toolbox fetchhelper. This gives great responses in terms of wrong fetchxmls...

  • MichielVanduren Profile Picture
    20 on at

    thanks for the reply.

    I don't get an error message, all the records are returned, so it seems that it doesn't take into account this filter.
    I tried deactivating all my existing entity permissions on these entities and replacing them with global entity permissions, but that didn't solve it.

    The xrm-toolbox fetchhelper tool, I don't know and can't find it, do you mean the fetchxml builder?

    The fetchxml builder, I already use to validate my fetchxml.

     

    Is there some place where I can see what query is executed on the datasource (Dataverse)?

  • Christian Leverenz Profile Picture
    1,214 on at

    Hi @MichielVanduren ,

    hm, sounds strange. I do not know of a place where the real fetch is stored or legged. May be you can make the link-entity stuff invalid so that it thows an error. May be that one is logged in the trace log somewhere.

    If all else fails you could write a plugin (which is executed upon every retrievemultiple and look, what fetchxml is sent. But i have to admit: a lot of work to debug something.

    Have fun,

      Christian

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 18

#2
11manish Profile Picture

11manish 16 Super User 2026 Season 2

#3
anirudhev Profile Picture

anirudhev 4

Last 30 days Overall leaderboard