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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

how to entityview's metafilter effective in linquid template

(0) ShareShare
ReportReport
Posted on by

I have below codes:

{% assign theDate = now | date: 'yyyy-MM-dd' %}
{% capture effectiveDate %}
(column1 on-or-after {{ theDate }} and column2 on-or-before {{ theDate }})
{% endcapture %}

{% entityview id:params.view, search:params.search, order:params.order, page:params.page, pagesize:params.pagesize, metafilter:effectiveDate %}
But, It can't filter entityview result, How to make it effective.
And, Where here can not be input filter?
2018_2D00_07_2D00_11_5F00_150859.png

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Dmytro Rutkovskyi Profile Picture
    1,835 on at

    Hello,

    To Apply FetchXML filter - you should define it first at entity list configuration page. It's where on your image is red marker - just press mouse here and start typing.
    More about FetchXML filter you can read here - https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/entity-list/entity-list-filter-configuration/#FetchXMLFilter

    The Part of your particular can look like:

        <filter type='or'  adx:uiname="date filter - today or future">
            <condition attribute='modifiedon' operator='today'  uiname="Today" />
            <condition attribute='modifiedon' operator='next-x-years' value='90' uiname="Next 90 Years" />
        </filter>


    Next thing - you need to specify correct MetaFilter value. Metafilter is just name-value collection. In above case, it will look like 0=0&0=1.
    You can read more about it here: https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/liquid-templates/filters/entity-list-filters/

    Probably you can find interesting next post as well: https://community.dynamics.com/crm/f/117/t/259027

    N
    ote: for your particular example you don't need FETCHXML filter - just https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/entity-list/entity-list-filter-configuration/#RangeFilterSet should be enough.

    Thanks, Dmytro

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans