Dynamics 365 V9 web resource get context


I used <a href="https://www.inogic.com/blog/2018/06/show-lookup-dialog-in-dynamics-365-v9-0/" rel="nofollow">this article</a> to open a popup window when clicking on a button in the Lead form. In the onclick event of a button in this popup window, I want to set the value of a field in the parent form. How can I do this in V9, since xrm.page is deprecated? I would like to know the equivalent of


The line above has a value of null in the lead form.

EDIT: in the link posted by Arun in the comment down here, it is written that <em>"although Xrm.Page is deprecated, parent.Xrm.Page will continue to work in case of HTML web resources embedded in forms as this is the only way to access the form context from the HTML web resource."</em>

Since I am opening a popup window, that is not embedded in the form, I can't use parent.Xrm.page. So it is not possible to set a value in thet parent form with a script inside a popup window?


You can use window.opener to do it.



  • how to update an app when ng cli and angular change version best practice
  • Dynamics CRM 2015 Online: SubGrid's control.SetParameter method is not available
  • DB2 Size of Table
  • MapBox clear all current markers
  • How can I get the value of a lookup field by javascript in Microsoft dynamics crm 365
  • How to identify Header Section in CRM Form?
  • Using JS to get a particular entity
  • addEventHandler() in a loop has unexpected results
  • How can I speed up this row-by-row operation in data.table
  • Google Contacts API get phone number (PHP)
  • Java Date object constructor for getting string is deprecated
  • Angular page doesn't refresh after data is added or removed
  • How to map Request parameter in Spring?
  • Converter from SAT to 3-SAT
  • Python getting common name from URL using ssl.getpeercert()
  • Excel VBA How to populate a multi-dimensional (3d) array with values from multiple excel ranges?
  • unable to get jsonEncode in magento2
  • Force show.bind execution
  • Automatically associate new Sonar project with custom quality profile and quality gate
  • Access variable of ScriptContext using Nashorn JavaScript Engine (Java 8)
  • MonoTouch: How to download pdf incrementally as indicated in the Apple slides “Building Newsstand Ap
  • Bad request using file_get_contents for PUT request in PHP
  • Disable Enter in editText android
  • Python CGI os.system causing malformed header
  • Spring Data JPA custom method causing PropertyReferenceException
  • FB SDK and cURL: Unknown SSL protocol error in connection to graph.facebook.com:443
  • Using $this when not in object context
  • How do I fake an specific browser client when using Java's Net library?
  • How reduce the height of an mschart by breaking up the y-axis
  • Perl system calls when running as another user using sudo
  • htaccess rewriting URLs with multiple forward slashes
  • Which linear programming package should I use for high numbers of constraints and “warm starts” [clo
  • Change an a tag attribute in JavaScript based on screen width
  • Display Images one by one with next and previous functionality
  • jQuery tmpl and DataLink beta
  • Web-crawler for facebook in python
  • A cron job substitute?
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Linking SubReports Without LinkChild/LinkMaster
  • Easiest way to encapsulate a HTML5 webpage into an android app?