Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

FetchXml Filter Entity List

(0) ShareShare
ReportReport
Posted on by

I've read a bit of setting up the FetchXML filter for an Entity List here: LINK

However, I can't get my filter to affect the entity list values at all.

<link-entity name="A" from="Aid" to="regardingobjectid" alias="aa">
  <link-entity name="B" from="Bid" to="B" alias="ac">
	<filter type="and">
	  <condition attribute="Bid" operator="eq" value="{{request.params.id}}" />
	</filter>
  </link-entity>
</link-entity>


I'm going through this manner to my entity list like this because I'm trying to display the children of all the child entities for the current page's entity.  I couldn't display it at all in a CRM Form because the current entity is not the direct child of entity B.  Does anyone know how to do the above or know of a better way to do what I need?

Example:

On a Region Entity Page:

    • Display Region Info
    • Display Region's States
    • Display States' Cities

Thanks!

*This post is locked for comments

  • RE: FetchXml Filter Entity List

    zabby I know this is old thread. How did you solve this issue? I am having similar issue in using filter in list.

  • Suggested answer
    ThomasN Profile Picture
    ThomasN 3,190 on at
    RE: FetchXml Filter Entity List

    Hi Zabby, thanks for reaching out.

    I am new to Liquid templates, but don't think you can do this because the lookup filters only match off the entity selected for the entity list. You are trying to go two steps down from region > States > Cities. You could go through update all regions to have a direct 1:N relationship with Cities, but that is not ideal.

    Try adjusting your page to have a Region Entity Form to display info. I have not done this before, but have the bottom part of page show an entity list of cities. Your attribute filter will have to feed off states in the Region. I don't know a stab in the dark on this one, but hope this points you in some direction.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans