Introduction
This guide is aimed at experienced Dynamics 365 consultants and shows how to integrate Maptaskr with Dynamics 365 Field Service. It is assumed that readers have knowledge of using Power Apps Studio and basic system configuration. This guide will not cover Maptaskr's advanced features but will show all you need to know to get up and running.
Please note that this tutorial has been written to suit the functionality and capability of Maptaskr v2.2.2.58.
If you are using a different version of Maptaskr then your experience may vary, and you may have to adjust some settings accordingly.
Configuring Dataverse
Dynamics Field Service stores latitude/longitude values as Numeric Float columns with only 5 decimal places. This equates to a location accuracy of a few meters, depending on where you are on the earth's surface. Whilst this is sufficient to get you to a location it is often not precise enough to accurately identify the specific asset there. These columns cannot be changed as the Schedule Board and Universal Resource Scheduling engine are dependent on them and any changes break them.
Asset management and GIS systems typically store location data at a much higher precision to define the exact location of an asset. In Maptaskr we typically store latitude/longitude values as Decimals with 10 decimal places.
Example
One customer in the aviation industry uses Maptaskr with Dynamics Field Service. One of their challenges was that runway lights are only 1m apart and are repaired during daylight hours when they are switched off. Engineers needed to know exactly which light is broken. Using Maptaskr they were able to drop a pin on the map and select the precise light in need of repair.
Below is a table reference of the decimal place accuracy of coordinates:
Decimal Places | Degrees | Distance (up-to) |
---|---|---|
0 | 1 | 111 km |
1 | 0.1 | 11.1 km |
2 | 0.01 | 1.11 km |
3 | 0.001 | 111 m |
4 | 0.0001 | 11.1 m |
5 | 0.00001 | 1.11 m |
6 | 0.000001 | 11.1 cm |
7 | 0.0000001 | 1.11 cm |
8 | 0.00000001 | 1.11 mm |
9 | 0.000000001 | 111 μm |
10 | 0.0000000001 | 11.1 μm |
11 | 0.00000000001 | 1.11 μm |
12 | 0.000000000001 | 111 nm |
13 | 0.0000000000001 | 11.1 nm |
When using Maptaskr with Dynamics Field Service we recommend adding additional latitude/longitude columns to the following tables:
- Case (Incident)
- Customer Asset (msdyn_customerasset)
- Work Order (msdyn_workorder)
Name | Data Type | Min | Max |
---|---|---|---|
Maptaskr Latitude | Decimal, 10 places | -90 | 90 |
Maptaskr Longitude | Decimal, 10 places | -180 | 180 |
There is currently a bug in Power Apps portal that means that decimal places are not set correctly when a column is first created, so create and save the column then edit to 10 decimal places! (Microsoft Product Group investigating).
As these columns will be used when capturing data those in the Customer Asset and Work Order tables need to be synchronised with the out-of-the-box (OOTB) columns. The easiest way to do this is to create real-time Workflows (see screenshots below using Asset Latitude as an example):
Set Workflow to be Real Time and triggered when the Record is Created, or when the Maptaskr Latitude column is modified.
Set the Latitude Column to be the same as the Maptaskr Latitude column. Follow a similar process to configure Longitude in this table and the Latitude/Longitude columns in the Work Order table.
Configuring Maptaskr Data Source Settings
Linking Tables to Maptaskr
Using the Maptaskr for Dynamics App configure Case, Customer Asset and Work Order to use these new columns. Also add Functional Location as a Maptaskr Data Source.
Creating Geo-Tagged Records from Maptaskr Dashboard
If you want users to be able to create geo-tagged records directly from the Maptaskr Dashboard set Allow in Context Menu?
to Yes.
Display Records as Icons or Coloured Pins
Under the Views tab select the views that you want users to be able to choose from when viewing data on the Maptaskr Dashboard.
If you want to use different colour pins or different colour/shaped icons when displaying the data, create separate filtered Dataverse Views for each category.
Screenshot below shows using icons and creating geo-tagged records from Maptaskr Dashboard using right-click menu.
A common use case in Field Service scenarios is managing additional processes like managing Permits to Work. Users also need to view ESRI ArcGIS layers showing additional context like proximity to high voltage power lines or underground services and need to draw shapes denoting the area in which they will be working.
Configuring Data Tab Columns
All records returned from a geospatial search are listed in the Data Tab at the bottom of the Maptaskr Dashboard screen. The Data Tab Fields tab defines the columns that are displayed and that can be searched.
Configuring Infobox Details
Entity Properties define the data to be displayed on the Details tab of the Infobox pop-up that appears when you click on a pin on the Maptaskr Dashboard. You can alias the column display name with a custom display name - often you may want to shorten/abbreviate the name, so it displays without wrapping on the Infobox.
Configuring Infobox Actions
Infobox Actions enable you to provide information at a user's fingertips via configurable data-driven hyperlinks. These can be creating new records, such as tasks/actions, adding the record to a route or linking to other applications such as SharePoint, Power BI or 3rd party tools such as drone image analysis solutions.
See examples of Dashboard Actions in the screenshot below:
The SharePoint action is a little more involved as it involves calling an external system and passing in a folder name parameter that relates to that record. Using Case as an example, create a calculated maptaskr_SharePointFolder
text column in the Incident table to create the folder parameter to be passed to the hyperlink and to parse out the hyphens from the record GUID with the Formula below (the path "/sites/Demo/incident/"
will vary depending on the SharePoint setup):
"/sites/Demo/incident/" & 'Case Title' & "_" & Substitute(Case,"-","")
For the Dashboard Action enter the following as the URL (again the path will vary depending on the SharePoint setup). The name of the calculated column should be enclosed in curly braces and will be appended to the URL thus making it dynamic & specific to this record:
https://yoursharepointsitehere.sharepoint.com/sites/Demo/incident/Forms/AllItems.aspx?id={maptaskr_sharepointfolder}
Make sure you use the columns logical name (all lower case)
Configuring Record Level Relationships
In the Functional Location Maptaskr Data Source settings go to Record Level Relationships
and select Customer Asset as the Related Entity
msdyn_customerasset (msdyn_customerasset_FunctionalLocation_ms)
Untick the Create Related Records
check box.