Getting latitude and longitude based on address from Bing maps using Power Automate Flow.
Hello Guys,
In our previous blog we have seen how to enable Bing Maps in D365 CRM. Today we are going to explore more about Bing Maps and Power Automate Flow.
Do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends.
To work with Bing Maps using Power Automate we require to setup Bing Maps developer account. Click on Bing Maps Portal.
Click on Sign In Button and specify your credential.
Click on "Yes, let's create a new account" and fill the info as shown below and click on create.
We will need an API key for our MS flows. Click on My account and choose My Keys. Specify the details and click on create.
So now key is created. You can click on show key and copy the key paste it somewhere for future purpose.
Now we will be creating two fields on Contact entity where we can display and store latitude and longitude. For time being we have already created this two fields as shown below:
Now we will be creating a power automate flow which will retrieve latitude and longitude from the Bing Maps. Visit https://make.powerapps.com and select your environment and open your solution.
Now click on New -> Automation -> Cloud Flow -> Automated. specify the details as shown below and click on create.
Configure the first step as shown below:
Click on new step and search Bing Maps and select Get location by address and specify connection name and provide API key which we have already generated and click on create. Once connection is established configure the step as shown below:
Now click on add new step and select update row and configure it as shown below:
So now our flow is ready. Now we will create a new contact and will check whether we are getting latitude and longitude or not.
As you can see latitude and longitude is updated on contact.
Hope it helps...
Comments
Post a Comment