Hi -
New to Power Apps world. I have a simple use case with 3 custom entities for a model driven app that we are trying for a POC. We want to use custom entities for managing this data. Not planning to go with the route of multiple BU's, teams, record ownership etc.
Group
(Sales, Marketing, IT)
Group User
Sales (Group Lookup) User1(User Lookup)
Marketing(Group Lookup) User1(User Lookup)
IT(Group Lookup) User2(User Lookup)
Group Request
Sales (Group Lookup) Request1
Marketing(Group Lookup) Request2
IT(Group Lookup) Request3
1) User can submit requests only under the associated groups - This is is achieved with JS onLoad event handler and XRM api, applyFilter on the Group lookup on the create form.
2) Group Requests view - This is the landing page of the app. When the HomepageGrid loads, it should show the Requests from all groups to which logged in user belongs to. I have JS with logic is ready but not able to find out how to call on the home page grid load? Unlike form, there are no event handlers with the views.
Ex: If user1 logs in, the view page should show the requests from Sales and Marketing groups.
Ex: If user2 logs in, the view page should show the requests from IT group.
What options out there with the custom model driven apps? This seems common requirement but somehow not able to figure it out.
Thanks for your help.
-Ram