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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Questions about FormContext passing the primarycontrol parameter through the Ribbon workbench and get it in html with javascript

(0) ShareShare
ReportReport
Posted on by 5

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.

I have the same question (0)
  • Suggested answer
    Henry J. Profile Picture
    5,237 on at

    Have you checked that thread?

    stackoverflow.com/.../how-to-get-formcontext-in-ribbon-command-of-dynamics-365-9-0

    This could help.

  • Verified answer
    Arun Vinoth Profile Picture
    11,615 Moderator on at

    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.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 93

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans