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 :
Customer experience | Sales, Customer Insights,...
Unanswered

How to add Multiple fetchxml dynamic conditions from in liquid Portal

(0) ShareShare
ReportReport
Posted on by 125

Hi All

 

From Page 1 adding query strings as section id and categories (Multiselect), but when trying to add these parameters to filter fetch, unable to get correct result... not sure if the below liquid statements are forming correct filter conditions as below

https://abc.powerappsportals.com/Sections/TestDoc/?Id=df286076-b9c6-eb11-bacc-0022481d870a&Category=1,3,8

 

<filter type="and" >

<condition attribute="new_categories" operator="contain-values" >
<value>1</value>

<value>3</value>
<value>8</value>
</condition>

<condition attribute="new_section" operator="eq" value="{12345667-34343434343-BACC-abcdefghi}" uiname="Marketing" uitype="new_section" />

</filter>

 

To form above condition I do use below liquid….but filter happens only for section id and not with categories

{% assign SectionId={{request.params.id}} %}

{% assign SectionId1={{request.url}} %}

{% assign beatles = {{SectionId1}} | split: "&" %}

{% assign Test = "None" %}

{% for member in beatles %}

{% capture my_variable %}

{{member}}

{% endcapture %}

{% endfor %}

{%- assign beatles1 = {{my_variable}} | split: "=" -%}

{% for member in beatles1| lstrip %}

{% capture my_variable1 %}

{{-member-}}{% endcapture %}

{% endfor %}

{%- assign beatles2 = {{-my_variable1-}} | split: "," -%}

{% capture my_variable3 %}

{% for member in beatles2 %}

{% capture my_variable2 %}{{"<value>"|escape}}{{member|strip}}{{"</value>"|escape}}

{% endcapture %}

{{my_variable2}}

{% endfor %}

{% endcapture %}

I have the same question (0)
  • Esteban Coto Alfaro Profile Picture
    Microsoft Employee on at

    Hello, I recommend you to check the following links, these links have some examples that could be helpful:

    + markcarrington.dev/.../

    + stoneridgesoftware.com/.../

    + dynamics365authority.com/.../d365-crm-portal-retrieve-data-using-liquid-templates-and-fetchxml

    Thanks!

    Community Support Team - Esteban

    If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 196 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans