Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск Все разделы прочитаны

Опции темы Поиск в этой теме Опции просмотра
Старый 16.01.2019, 00:23   #1  
Blog bot is offline
Blog bot
23,388 / 794 (73) +++++++
Регистрация: 28.10.2006
powerobjects: Route Optimization With Flow and PowerApps: Power Platform App for Delivery Fulfillment

Scenario: Your organization receives orders and then delivers those orders to customers. The drivers in your organization show up for work at a warehouse, pick a truck that’s already been loaded with packages, and heads out for the deliveries. But… once the drivers are in the trucks, how do they know which package to deliver first? And how can they deliver all packages efficiently – spending the least amount of time driving?

The answer: route optimization. When it comes to delivering packages efficiently, route optimization is crucial – and it can be accomplished by implementing a solution built with PowerApps and Flow! Let us show you how…

Before we begin, let’s cover a few parameters:

1. The app we’re building connects to Dynamics 365 for Customer Engagement in order to:
  • House delivery-related information
  • Send and receive addresses for delivery
2. Via Flow, the app uses Google’s API to perform the route optimization action for drivers.

Now, let’s get started!

App Interface

Screen 1 – “Available Trucks”

Drivers picks from a list of available trucks. These Truck records are created in Dynamics 365 and displayed in PowerApps using the standard Dynamics 365 connector.

Screen 2: “Deliveries” (a unique list for each truck)

This screen shows the deliveries contained in the Truck selected on Screen 1. As you will see, each Delivery has an associated Address. Clicking Optimize Route on this screen sends the address information to an Azure function, and within a matter of seconds displays an optimized route in Google Maps. More on that later.

Fun Side Note: Clicking Optimize Route brings up a screen with a fun GIF. As the route optimization is being performed, the screen shows a navigation marker that’s being chomped on.

Screen 3: Delivery Details

Open one of the Delivery records in the previous screen to view its details. Click Navigate to open the phone’s maps app with this delivery’s address.

Flow Details

Below is the Flow that is triggered upon clicking Optimize Route.

1. PowerApps general information.

2. The Initialize variable step defines the start and end location, which we have defaulted to as Minneapolis, MN.

3. Get the Address information from the Delivery records for the specified Truck.

4. Define a variable “value” that contains the start point, end point, and addresses.

5. Send the information contained in Step 4 to an Azure function. This Azure function sends the information to the Google Maps Directions API, which sends it back to the Azure function in an optimized fashion.

Note: The Directions API is very nominally priced, starting at $.005 per call ($5 for 1,000 calls).

6. The Azure function sends the optimized route back to PowerApps in a URL format. This URL is then opened in the device’s native maps application. In our case, here’s what Google Maps displays:

And there you have it! With PowerApps and Flow, you can build your own fully-functioning delivery app that incorporates route optimization.


This app highlights two very powerful features of PowerApps:

1. If you have a need for a mobile app that has a very specific use case – however complex it may seem, Power Platform is definitely a viable platform for it because of its ability to work with practically any application in existence. And as you can see, a fairly complex app can be built quite easily using Power Platform.

2. Cost! PowerApps and Flow are most likely included in your Dynamics 365 or Office 365 plan. You will be not be paying any additional licensing fees for a single app.

Visit our PowerApps and Flow webpages to learn more. Happy Flow’ing!

Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
powerobjects: Power Platform Administration Center Blog bot Dynamics CRM: Blogs 0 05.12.2018 02:27
powerobjects: Empowering Your Team with Microsoft Flow Blog bot Dynamics CRM: Blogs 0 06.09.2018 02:35
powerobjects: PowerApps Hackathon Event Recap Blog bot Dynamics CRM: Blogs 0 13.07.2018 00:12
powerobjects: Dynamics 365 Spring 2018 Update: What’s New in PowerApps and Flow? Blog bot Dynamics CRM: Blogs 0 31.05.2018 02:17
survivingcrm: Business Application Platform at Microsoft Build 2018 Blog bot Dynamics CRM: Blogs 0 12.05.2018 23:12
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Часовой пояс GMT +3, время: 08:38.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.