Hello,
On the SiteMap of our model driven app. We have navigation items that use an HTML Web Resource to redirect to an Azure Hosted Website that works alongside our Model-Driven App.
In that HTML Web Resource we have to use the clientglobalcontext.js.aspx to get a reference to the Global Context to get the current Dynamics Logged-In User.
That User ID alongside some configuration information stored in the Dataverse table enables us to create a Custom Redirect URL for that user to the other site.
With the proposed Deprecation of clientglobalcontext.js.aspx in October 2022.
I am trying to determine how to implement this functionality going forwards.
The alternatives suggested:
1. Power Apps Component Framework - From what I have seem - I don't think you can have a PCF control bound to a SiteMap Navigation item. Unless I am missing something?
2. Custom Pages - Again, as far as I can see. Cannot be associated with a SiteMap Navigation item.
We are calling a stand-alone web resource from the SiteMap here. So, workarounds such parent.Xrm.* will not work as the Web Resource is not hosted on a form.
Is there an alternative Library available to allow us to retrieve the Global Context in an HTML Web Resource?
Best Regards,
Shaun Harvey