Hey Everyone,
I just wanted to check if you’ve come across this issue before.
We have built an internal Copilot licensing solution to automate our licensing process, the solution contains a Canvas App and a Model Driven App, the data source for Canvas App is SharePoint list and we have flows to sync data between SharePoint and Dataverse.
The Canvas App is the entry point for everyone regardless of their role. When a user opens the Canvas App, the welcome screen dynamically changes based on their role (checked via Office 365 group membership). End users see a form to submit license requests. Approvers (Manager, VP, and Admin) see the same form plus an additional button on their welcome screen that navigates them to the MDA, with the deep link constructed dynamically to point to their corresponding role specific custom page.
The MDA has custom pages acting as the home screen per role, essentially a role specific dashboard for each approver level. These dashboards have Power Fx KPI calculations pulling real-time data from Dataverse and a premium connector for tenant license availability, with navigation buttons to dataverse views like Pending, Approved, Rejected etc.
The issue is when an approver clicks the button in the Canvas App to open the MDA, it opens in a new tab via the deep link pointing directly to their role specific custom page. It just hangs for ~30 to ~60 seconds, throws an error, and only after a manual refresh does the sign in popup show up. We also observed that this only happens the first time, from the second time onwards it works perfectly fine. However if the browser is closed and reopened the same cycle repeats again.
I checked the docs and the only thing I found was that third party cookies need to be enabled for custom pages to work, other than that I could not find anything else. Have you run into something like this or know a way around it?
Short Version:
Deep linking from Canvas App to an MDA custom page in a new tab causes a 30 second hang and error on first open every browser session, works fine after a manual refresh and sign in, and repeats every time the browser is closed and reopened.
Thanks