---
title: Embedding EasyTerritory within Dynamics 365 iFrame
description: "The EZT IFRAME function allows you to load an EasyTerritory map as an iFrame on a form.  This iFrame will dynamically zoom to the record’s latitude and longitude specified on the form. **To configure this feature into your Dynamics 365…"
url: "https://www.easyterritory.com/documentation/dynamics-365-managed-solution/installing-the-managed-solution/crm-easyterritory-iframe/"
updated: "2026-01-29"
category: "EasyMap Power App & Dynamics 365 Managed Solution / Installing the Managed Solution"
---

# Embedding EasyTerritory within Dynamics 365 iFrame

The EZT IFRAME function allows you to load an EasyTerritory map as an iFrame on a form.  This iFrame will dynamically zoom to the record’s latitude and longitude specified on the form.

**To configure this feature into your Dynamics 365 forms, follow these easy steps:**

- Download and import the EasyTerritory Unmanaged Solution for Dynamics 365 from [Microsoft AppSource](https://appsource.microsoft.com/en-us/product/dynamics-365/easyterritory.easyterritory_for_d365_sales?exp=ubp8&tab=Overview).
- Register for a trial of [EasyTerritory Enterprise](https://www.easyterritory.com/free-trial/).
- In Dynamics 365 customization section or in Power Apps portal, navigate to the entity you’d like to embedded the EasyTerritory map on.
- Add an iFrame/External Website to your page.
- In the Properties section, specify unique name as: IFRAME_**EasyTerritory**
- Specify URL as:
-   https://apps.www.easyterritory.com/**EasyTerritory instance id**/app/index.html?projectId=**project id**&Lat=**address1_latitude**&Lon=**address1_longitude**
- Add your EasyTerritory **instance id**, and **project id** into the URL. Lastly define the fields on the form you would like to map on the Iframe. For, instance if you would like to map the fields ‘**address1_latitude**‘ and ‘**address1_longitude’** you would specify that after the **&Lat=** and **&Lon=** respectfully in the URL.
- For customers using Azure Active Directory, include the following URL parameter at the end of the EasyTerritory URL:
  **&useAdalPopup=true**
- Specify Label as: EasyTerritory

![ConfigureIFramePropertiesD365-2048x1062-1](https://www.easyterritory.com/wp-content/uploads/2025/10/ConfigureIFramePropertiesD365-2048x1062-1-1024x531.png)

- In the ‘iFrame Properties’ window click the ‘Events’ tab.
- In ‘Form Libraries’ add ezt_iframeMap.js
- In ‘Event Handlers’ add the Event: ‘OnReadyStateComplete’
- Then click the ‘Add’ icon and in the ‘Handler Properties’ pop-up window type the function: ‘iframeMap’. Make sure you check ‘Enabled’.  Finally, press ‘OK’.
- Before finishing, click ‘Save’ and ‘Publish’ to enable this feature on your forms.

![ConfigureIFramePropertiesD365_2-2048x1219-1](https://www.easyterritory.com/wp-content/uploads/2025/10/ConfigureIFramePropertiesD365_2-2048x1219-1-1024x610.png)
