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 / Add additional filter ...
Power Pages
Unanswered

Add additional filter to view

(0) ShareShare
ReportReport
Posted on by 5

I have a list based on a view. How do I add additional filter to the view ? I tried to add some fetchxml in the filter section on the list, but does not seem to work. 

 

<filter type="and">
<filter type="or">
<condition attribute="val_externalportaluser1" operator="eq" value="{{ user.id }} />
<condition attribute="val_externalportaluser2" operator="eq" value="{{ user.id }}/>
<condition attribute="val_externalportaluser3" operator="eq" value="{{ user.id }}/>
</filter>
</filter>

 

So I want to filter some fields based on current userid. the user should not be able to change this.

Categories:
I have the same question (0)
  • João Santos Profile Picture
    323 on at

    Hi @PowerGoose

    If I'm understanding your question correctly you want to filter the views based on the current user but directly on the views used in the entity list control.

    You should be able to do this using a "Mockup" Portal User contact record.

    Have a look at option 2) on this link: https://www.asmaabouhmidi.com/post/power-apps-portal-filter-on-current-contact

    Basically, when you use a View on Power Pages and one of the filters is a Contact Lookup, if you set that to a value Power Pages converts that to a "Current logged in user" filter.

    Hope this helps

  • Lucas001 Profile Picture
    2,529 Super User 2026 Season 1 on at

    Hi @PowerGoose,

     

    in your conditions, please check for " as it is only one inside the value tag.

    By passing a variable as value you should not need a " at all:

    <condition attribute="val_externalportaluser1" operator="eq" value= {{ user.id }} />

     

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

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 21 Super User 2026 Season 1

#2
CN-06091549-0 Profile Picture

CN-06091549-0 18

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 17 Most Valuable Professional

Last 30 days Overall leaderboard