Hello everyone, I have a small problem, I have a custom button, where through a code I open a webresource screen that is HTML and Javascript, I pass the "primarycontrol" parameter but at the time of consulting the parameter in Javascript To get some data with dynamics, he tells me that the parameter is not defined, someone could help me, I would greatly appreciate it.
When you open the HTML web resource popup using the Ribbon button click, you will be able to get the Xrm.Page by using the window.opener.Xrm.Page
If its embedded, then window.parent.Xrm.Page should work.
This is still supported & only way to get the parent page context.
Have you checked that thread?
stackoverflow.com/.../how-to-get-formcontext-in-ribbon-command-of-dynamics-365-9-0
This could help.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,151 Super User 2024 Season 2
Martin Dráb 229,963 Most Valuable Professional
nmaenpaa 101,156