We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b31c8c4 commit dbfbeeaCopy full SHA for dbfbeea
1 file changed
src/XrmDefinitelyTyped/Resources/dg.xrmquery.web.ts
@@ -1310,12 +1310,20 @@ namespace XQW {
1310
return GetGlobalContext().getClientUrl();
1311
}
1312
} catch (e) {}
1313
+ try {
1314
+ if (window && window.parent && window.parent.window) {
1315
+ const w = <typeof window & { Xrm: any; }>(window.parent.window)
1316
+ if (w && w.Xrm && w.Xrm.Utility && w.Xrm.Utility.getGlobalContext) {
1317
+ return w.Xrm.Utility.getGlobalContext().getClientUrl();
1318
+ }
1319
1320
+ } catch (e) {}
1321
try {
1322
if (Xrm && Xrm.Page && Xrm.Page.context) {
1323
return Xrm.Page.context.getClientUrl();
1324
1325
- throw new Error("Context is not available.");
1326
+ debugger; throw new Error("Context is not available.");
1327
1328
1329
/**
0 commit comments