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 Apps / Model Driven, view for...
Power Apps
Answered

Model Driven, view form: How to set a filter programmaticaly on opening a view form?

(0) ShareShare
ReportReport
Posted on by 264

Hi, guys!

I'd like to set a filter programmaticaly on opening a view form.

 

For example. A user opens a view form and can see records filtered by his name or department, etc.

Then he can change that filter or not (if the filter is read only).

Is it possible?

If not is it possible with PCF?

 

I have the same question (0)
  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @Max77 ,

    One thing you can do is filter views by the current logged in user (or team).  http://vjcity.blogspot.com/2019/08/how-to-filtered-records-by-logged-in.html along with any fields related to that user (i.e. department etc.)

  • Max77 Profile Picture
    264 on at

    @dpoggemann , thank you!

    Maybe you know... Is it possible to lock the user to change filter in a view form?

  • Linn Zaw Win Profile Picture
    2,996 on at

    @Max77 

    It is not possible to disable the Edit Filters button for the users. If the requirement to restrict the access of the users to only see their own record or their business unit (department) records for information sensitivity (rather than the convenience of not showing irrelevant data), you should consider configuring the role-based security. (Create or edit a security role to manage access)

    Please try to go through this learning module if you're not familiar with security roles in Dataverse.

    Other useful blog posts

     

  • Verified answer
    Linn Zaw Win Profile Picture
    2,996 on at

    @Max77 

     

    If my answer solved your problem, can you please mark it as a solution to close this thread? That will be useful for others in the community who come across this thread to identify the solution easily.

     

     

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 Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard