web
You’re offline. This is a read only version of the page.
close
Skip to main content
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.

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Using parent.XRM + removal of the ClientGlobalContext.js.aspx

    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
    RE: Using parent.XRM + removal of the ClientGlobalContext.js.aspx

      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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 46

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 44 Super User 2025 Season 2

#3
CU29080825-0 Profile Picture

CU29080825-0 16

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans