Hi Folks,
We have few Custom HTML Webresources which were standalone and not called from any form or a ribbon. ClientGlobalContext.js.aspx is used to get context information previously.
But understood that this would be deprecated on Dec 1, 2020. Is there any alternative for this in UCI? Also please let us know if there was any other way to replace addonkeypress event without using any custom control.
Thank you.
Pavan Mani Deep
An important update on ClientGlobalContext.js.aspx's deprecation and removal timeline:
The ClientGlobalContext.js.aspx page is deprecated and scheduled to be unavailable after October 1, 2021.
Alternative methods to access global context information will be available before April 1, 2021
Andrii,
How would you have access to the WebAPI without ClientGlobalContext.js.aspx? Just to get the URL to CRM, you need to call Xrm.Utility.getGlobalContext().
How do we get around this?
Thanks,
-Z
Thank you Andrew & Henry...for your suggestions...
Hi Pavan,
On top of Andrew's advise, please refer to this page on ClientGlobalContext.js.aspx deprecation:
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/getglobalcontext-clientglobalcontext.js.aspx
Henry
Pavan,
What information do you use from the context? Pretty much everything can be received either from the Url or queries using WebApi.
Unfortunately there is no direct replacement for addOnKeyPress. You will have to use Custom PCF control. I created it already so you can tru it - github.com/.../Text-Autocomplete-Control
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156