Hi Community,
Mscrm.Utilities.setReturnValue() which is used to return a parameter from HTML webresource to the code from which it was called to open doesn't seems to be working any more.
It returns an error something like "Microsoft is undefined". Do we have any other way to return back the parameters or am I missing the logic somewhere.
Kindly need some help.
Thank You!
Hello,
Does that help?
An HTML web resource added to a form can’t use global objects defined by the JavaScript library loaded in the form. An HTML web resource may interact with the Xrm.Page
or Xrm.Utility
objects within the form by using parent.Xrm.Page
or parent.Xrm.Utility
, but global objects defined by form scripts won’t be accessible using the parent. You should load any libraries that an HTML web resource needs within the HTML web resource so they’re not dependent on scripts loaded in the form.
Henry
Hi,
I need to return a value from HTML webresource(a comfirm dialod box) to the code that calls the HTML webresource. How can I do that.
Thank You!
Hi,
That is the downside of using unsupported code. It may work for sometime but will fail in future updates. I would suggest you to update your code with the supported methods. If you want to update the record, you can use web api.
Hope this helps.
Hi Community,
Mscrm.Utilities.setReturnValue(returnVal) doesn't seems to be working in HTML webresource. Do we have any alternates or replacements for this.
Thank You
André Arnaud de Cal...
292,031
Super User 2025 Season 1
Martin Dráb
230,868
Most Valuable Professional
nmaenpaa
101,156