Following the instructions below, you can embed EasyTerritory project directly into a Microsoft Dynamics 365/CRM Entity form. This will allow you to open a CRM record and have the EasyTerritory map project zoom and center the map on based on the record’s location. The feature can be used with out-of-the-box lat/lon fields or custom lat/lons.
Here are the setup steps:
- Register with EasyTerritory.com, download and import the EasyTerritory Unmanaged Solution for Dynamics CRM.
- Browse to target Entity’s form configuration page (e.g. Account, Lead, Opportunity, or a custom Entity)
- Click insert and click ‘iFrame’.
- Specify unique name as: IFRAME_EasyTerritory
- Specify URL as:
- EasyTerritory Cloud-hosted: https://apps.easyterritory.com/{YOUR CUSTOMER GUID}/app/index.html?projectId={YOUR SAVED PROJECT’S GUID}&Lat=address1_latitude&Lon=address1_longitude
- EasyTerritory Cloud-hosted: https://{YOUR EASYTERRITORY URL}/app/index.html?projectId={YOUR SAVED PROJECT’S GUID}&Lat=address1_latitude&Lon=address1_longitude
- NOTE: The Lat and Lon parameters are the schema names for the fields storing the Lat and Lon data. You can use custom fields if you’d like.
- Add your Easyterritory instance, project id, and which fields on the form you would like to map.
- Specify Label as: EasyTerritory
- In the iFrame properties window click the ‘Events’ tab.
- In ‘Form Libraries’ section add the library: ‘ezt_iframeMap.js’
- In ‘Event Handlers’ section add the function: iframeMap
- Click save and publish.