Announcements
No record found.
Hello
Please I need input on deprecation of ClientGlobalContext.js.aspx according to the below article. We are using parent.Xrm in standalone web resource for an integration. I am confused about "window.parent.Xrm.WebApi.online.****" will these sort of sdk methods still work. According to: https://docs.microsoft.com/en-us/power-platform/important-changes-coming:
"Including a reference to ClientGlobalContext.js.aspx does not make the Xrm object available in HTML web resources. Therefore, scripts containing Xrm.* methods aren’t supported in HTML web resources. parent.Xrm.* will work if the HTML web resource is loaded in a form container. However, for other places, such as loading an HTML web resource as part of the SiteMap, parent.Xrm.* also won’t work."
So parent.Xrm won't work but what about window.parent.Xrm being used in a HTML web resource as part of the SiteMap/standalone html web resource.
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/getglobalcontext-clientglobalcontext.js.aspx
Would appreciate some clarification.
Hi Noorahmad001,
Based on my understanding, "window.parent.Xrm.WebApi.online.****" would not work in your situation. As the docs your provided says, parent.Xrm.* would only work on web resource which is loaded in a form container. However, your web resource is standalone. You would better raise a ticket to contact Microsoft to confirm.
The interesting this is its working for now even I didn't include "ClientGlobalContext.js.aspx " in my html file.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Syed Aqib Raza 42
11manish 31 Super User 2026 Season 2
Travis South 25