Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Is it possible to make view read only, but records inside view can not be accessible.

(0) ShareShare
ReportReport
Posted on by 450

I want to display a grid on a form including some records.

But I do not want the current user can open the records displayed in the view.
Is it possible?

  • Verified answer
    Kokulan Profile Picture
    Kokulan 18,050 on at
    RE: Is it possible to make view read only, but records inside view can not be accessible.

    Hi

    Like others mentioned, there is no straightforward way to achieve this using out of the box features but that does not mean its not possible.  You could consider one of the following options.

    No Code approach - Security Roles Enabled Form

    Create a form that only has the fields that are on the view and make that form as the fall-back form. This form will be accessible to all.

    Make all other forms accessible only certain security roles, this way you can control access via security roles.

    Downside to this approach is that users can still do advance find and get to the data if they really want to see the data

    Code based approach - Plugin on Retrieve Message

    You can create a plugin that triggers on Retrieve message on the entity and checks if the user is allowed to view the record, if not, it could throw an exception saying you do not have permissions to view this record. This approach will prevent user from viewing the record from any client not just the form.

    Please note users can create personal views add all the columns they need and still view all the data from a personal view View if you do not restrict them from creating personal views. If you want to prevent user from creating personal views, you could look into restricting view security role, by setting permissions on Saved View.

    pastedimage1634630530204v1.png

     

    Hope this helps

  • Suggested answer
    RE: Is it possible to make view read only, but records inside view can not be accessible.

    If the user have read privileges on the record, they should be able to see it in the view and access the record.

    However, it is possible not to edit the record.

  • Verified answer
    Pradeep Rai Profile Picture
    Pradeep Rai 5,480 Super User 2024 Season 2 on at
    RE: Is it possible to make view read only, but records inside view can not be accessible.

    Hi,

    Agreed with Ramprakash Duraisamy.

    And add on to above suggestion you can also, create reusable PCF Control using Fluent UI.

    sample:
    https://developer.microsoft.com/en-us/fluentui#/controls/web/detailslist

    PCF example:
    https://nebulaaitsolutions.com/pcf-control-with-fluent-ui-and-react-typescript/

    Thanks,
    Pradeep.

     

  • Verified answer
    Ram Prakash Profile Picture
    Ram Prakash 2,285 on at
    RE: Is it possible to make view read only, but records inside view can not be accessible.

    Hello Albert,

    As per our of the box behaviour we cannot avoid opening the Record Form.

    Based on your current situation, try writing a HTML page and populate the same by adding the HTML Page in Model Driven Apps

    Please mark as Answer if it is helpful and provide Kudos

    Subscribe : www.youtube.com/.../UCnGNN3hdlKBOr6PXotskNLA

    Blog : microsoftcrmtechie.blogspot.com

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,703 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans