web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Using parent.XRM + removal of the ClientGlobalContext.js.aspx

(0) ShareShare
ReportReport
Posted on by 130

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.

  • Suggested answer
    Community Member Profile Picture
    on at

    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.

  • Noorahmad001 Profile Picture
    130 on at

      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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Syed Aqib Raza Profile Picture

Syed Aqib Raza 42

#2
11manish Profile Picture

11manish 31 Super User 2026 Season 2

#3
Travis South Profile Picture

Travis South 25

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans