cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
WDRC
Level: Powered On

Location

All,

I am trying to use the location from a button flow I am creating.  The button appears to give me the latitude and longitude.  With a compose function I want to obtain a hyperlink of something like the below:

https://www.google.co.uk/maps/@51.5042969,-0.0892836

The hyperlink will then be saved to the SharePoint list in a multiple lines of text field that has the enhanced rich text radio button selected.  When I go into the list I should be able to look at the location where I was at the time.

The only issue is using the right expression to use the latitude and longitude in the flow.  The rest of the flow works really well.

Regards,

Andrew

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Location

Hi @WDRC,

 

Do you want to generate a Hyperlink with the format you provided and save it into SharePoint list in a multiple lines of text field?

Please check the following for a reference.

Add the button trigger.

Add two compose actions for Latitude and Longitude separately.

Add Compose 3 and input the following code to generate the Hyperlink:

concat('https://www.google.co.uk/maps/@',outputs('Compose'),',-',outputs('Compose_2'))

 

Then create item with corresponding value for each field. TestA is a column of type multiple line of text and output of Compose 3 will be saved into it.

1.PNG2.PNG

Please take a try with it on your side.

More details about concat function for your reference:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#c...

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Community Support Team
Community Support Team

Re: Location

Hi @WDRC,

 

Do you want to generate a Hyperlink with the format you provided and save it into SharePoint list in a multiple lines of text field?

Please check the following for a reference.

Add the button trigger.

Add two compose actions for Latitude and Longitude separately.

Add Compose 3 and input the following code to generate the Hyperlink:

concat('https://www.google.co.uk/maps/@',outputs('Compose'),',-',outputs('Compose_2'))

 

Then create item with corresponding value for each field. TestA is a column of type multiple line of text and output of Compose 3 will be saved into it.

1.PNG2.PNG

Please take a try with it on your side.

More details about concat function for your reference:

https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#c...

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
WDRC
Level: Powered On

Re: Location

@v-yamao-msft,

Thanks after a few hicups it worked a treat and I got a green tick all the way.

 

Location.png

 

And in the SP list everything works well in storing the location but I needed to change the colum designation to a true hyperlink to make it work on a PC, but on a mobile it seemed to work by any method.  In fact the mobile phone worked better when it came to pinpointing the true location and I was able to see a location to within 5m or 15ft which is close enough for me.  

So in terms of this specific query I am marking as solved.

Thanks once again.

Regards,

Andrew

Helpful resources

Announcements
firstImage

Microsoft Flow Online Conference

Join us for a FULL day of FREE Microsoft Flow Sessions from some of the best minds in the industry!

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

thirdImage

New Flow Community Board!

Check out the new Microsoft Flow Community Blog Topic Suggestion board!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 53 members 3,844 guests
Please welcome our newest community members: