Adding Routing Capabilities to Asset Management in Dynamics 365 Supply Chain Management

Ever thought it would be nice to know how long it takes to get from where you are to a functional location in Asset Management (AM)? With Power Apps and Bing Maps you can.

In this blog post, I will explore how we can enrich the AM experience with routing capabilities using Bing Maps. Bing Maps, as you know, provides various mapping capabilities and is a native Power Apps connector (in preview). It comes with an API that allows us to call various mapping functions.

Please note that Bing Maps is a paid service so you need to sign up and generate an API key before you can use the service.

In this small example, I have used Bing Maps in a Power Apps app to show routing information between my current location and the location of the selected functional location in AM. This is what the app looks like:

Functional Location Routing Information

As you can see, the app displays my current location and the location of the asset (functional location). Bing Maps calculates distance, duration and estimated arrival time between the two locations and displays a short route description. Optionally, we can select what to avoid on the route.

Once you have added Bing Maps to your app as a data source, it is relatively easy to call the service using the API.

The idea was to provide routing capabilities in AM. To achieve this, I have embedded the app in the Functional Locations details page. By providing the functional location ID to the app, I can look up the primary address and use this as the routing endpoint.

This is what it looks like:

Routing Tab Added to the Functional Locations Details Screen

As you can see from the above screenshot, I have added a new tab to the screen called Routing Information through personalisation.

When the tab is expanded you can see that the app is now embedded directly in the user interface and since the functional location can be passed to the app, it is also context sensitive.

Routing Capability Embedded in User Interface

When I toggle the Avoid motorways option, the app instantly recalculates the distance and duration as shown below.

Using Avoid Options in the App

This was just one example of how we can leverage online services to enrich the Dynamics 365 Finance and Operations experience using the Power Platform.

In a coming blog post, I will look at the mechanics behind the app and show how easy it is to interact with the Bing Maps API.

Published by Henrik Marx Larsen

This blog is my personal contribution to the Microsoft Dynamics 365 for Operations and Finance (D365F&O) community debate. Having worked with Axapta / Dynamics AX / D365F&O for 20 years , I think I may have some interesting insights and views to share. However, I tend to always look forward so I will mostly be writing about current subjects. I have a vain hope that my musings may inspire some of you and provoke some new thoughts in the interest of our community. My day job is to work as a Senior Technical Specialist at Microsoft and help take D365F&O capabilities to new and existing customers. Please note, the views expressed in this blog are mine alone and do not necessarily reflect the views of my employer, Microsoft.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: