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

Notifications

Announcements

No record found.

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
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 74 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 31 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans