Back to Blog Listing
To embed an IFRAME with dynamic values to a Dynamics CRM form then first you must create the IFRAME on the relevant form. This can be done by navigating to the "form editor" for the relevant page then selecting to insert an IFRAME.
Give the IFRAME a name, a label and a URL (please note that at this point the URL value is irrelevant)
recordId = Xrm.Page.data.entity.getId();
Once referenced, within the event handlers section select "add" again and this time add the name of your function (i.e. "begin" from example above).
Once these steps have been saved and published you should be able to call your custom code with a additional query parameter of the ID of the chosen entity and then display the result on the entity form.