Search code examples
powerapps-modeldriven

PowerApps Model Driven to open form based on the view


I have created a model driven PowerApps. There are two views created View1 and View2. View1 should be accessible to all users but users should not be able to edit records when opened through View1. Similarly, users with a specific role should be able to edit the records when opened through View2.

I checked through business rules present in the model-driven approach, but didn't find any solution.

Let me know in-case of any other alternatives for implementation of same.

Thanks,


Solution

  • Forms doesn't have context of which views they are opened from, & whichever view they opened from as long as they have access to the record they can edit it.

    There are alternate ways to achieve the actual user requirement,

    • Role Requestor: Create & Read Privilege at User Level, these guys can create records and submit for approval.

    • Role Approver: Read, Write Prvileage at User Level, these guys can approve the request that is submitted.

    Now Upon Submit to Approval, you can choose to either assign the record to Approver or Share the record with Approver via power automate. Now Approver can open the record and approve.

    (additionally you can have role based form where approver role will have a form that has all fields read-only so he can only approve OR a JS to lock unlock fields)