Oct 04 2023 03:31 PM - edited Oct 04 2023 04:02 PM
We have a SharePoint list which stores the Assets' locations (Latitude & Longitude).
When a support ticket is created for an asset >> Technicians will get an email that a support ticket was created for an asset >> so they need to login to Power Apps and send their location.
So at the end we will have 2 SharePoint lists; first one which stores the current technicians' Latitude and Longitude + second one which stores the related Asset Latitude and Longitude.
Then i want to trigger a workflow which calculate the nearest technician from the asset (nearest route using vehicle) and send him/her an email. so is this possible inside power automate to calculate the nearest route between 2 coordinations (The Asset coordination & The Technicians coordination) ?
Oct 05 2023 03:12 AM
Hi @john john,
your question is really interesting.
Here is just an idea how it could be done:
Prerequisites:
Steps:
More about the idea:
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)
Oct 05 2023 03:54 AM
@LeonPavesic thanks for the steps and reply.. but can you provide more specific reply... does the Bing Map connector which is offered by Power Automate, can solve this issue?
Oct 05 2023 06:19 AM
Hi @john john,
thanks for your feedback.
The Bing Maps connector in Power Automate can indeed help you calculate distances and routes between coordinates, which could be useful for finding the nearest technician to an asset.
Bing Maps - Connectors | Microsoft Learn
To do that you can use following steps:
Step 1: Set Up Your Flow Trigger
Step 2: Retrieve Asset Coordinates
Step 3: Fetch Technicians' Coordinates
Step 4: Loop Through Technicians
Step 5: Calculate Distances
Step 6: Identify the Nearest Technician
Step 7: Send Email to the Nearest Technician
Step 8: Optional - Update SharePoint List
I hope this helps you.
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)
Oct 07 2023 03:15 AM - edited Oct 07 2023 03:20 AM
@LeonPavesic and is this BingMap connector which allow us to calculate the routes offered as a standard connector or premium connector
again i am asking very specific question i do not need all the steps you are providing,, your replies are similar to the ones i got using some AI tools.. i actually got a very similar reply when i used a popular AI tool !!
Oct 08 2023 10:47 PM
Hi @john john,
Bing Maps connector for Power Automate is a standard connector for Power Automate (the exception is China Cloud). You can check Microsoft Learn Documentation for more information.
Bing Maps - Connectors | Microsoft Learn
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)
Oct 11 2023 04:52 PM
@LeonPavesic and per your knowledge, does it allow us to calculate the nearest route between 2 coordinations ?
Oct 11 2023 11:49 PM
@john john rather than the answers suggested previously I would do this in Power Apps as the Bing Maps connector works well with it. In Power Apps there is a BingMaps.GetRoute() function which will show you the route between 2 points. Note, it can't handle multiple points just a start and end. I built an app for my company using Bing Maps which doesn't in fact get the route but does calculate the distance between 2 points. The user manually enters the startand end locations but they could equally be selected from a SharePoint list using dropdowns.
Come back with questions if you need more info about how I did any of this.
Rob
Los Gallardos
Microsoft Power Automate Community Super User.
Principal Consultant, SharePoint and Power Platform WSP UK (and classic 1967 Morris Traveller driver)
Oct 11 2023 11:54 PM
Hi @john john,
thanks for your Update.
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)
Oct 12 2023 06:04 AM
@Rob_Elliott Thanks a lot for the reply... but why not to do the same inside Power automate ? as the Bing Map connector inside power automate provides the same features as in power apps? am I correct? I prefer to do the calculation inside Power Automate and have Power Apps display the results only which will be stored inside a SharePoint list
Oct 12 2023 06:06 AM - edited Oct 12 2023 06:08 AM
@john john because I wasn't asked to do it in Power Automate but to have an app that staff could use visually. It was just an example of Bing Maps being used in an app in a real world environment.
Oct 12 2023 06:09 AM
@LeonPavesic thanks for the reply, i only want Power automate to calculate the route distance between 2 points at a time.. and then i will display this value inside a list inside Power Apps...
the list will show the technician name >> and the distance between the technician and the asset.. something as follow:-
Technican1 1km
Technicnai2 10 km
TechncianX X km
so i think Bing Map power automate will be sufficient for me,, am i correct?
Oct 12 2023 06:11 AM
@Rob_Elliott ok thanks, i thought you are saying that it will not be possible to do it in Power automate... as based on my info, Bing Map connector for Power automate and for Power Apps provides the same features
Oct 12 2023 06:16 AM
Hi @john john,
correct, using Bing Map in Power Automate will be more then sufficient for your needs.
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)