cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WDRC
Helper V
Helper V

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
v-yamao-msft
Community Support
Community Support

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.

View solution in original post

2 REPLIES 2
v-yamao-msft
Community Support
Community Support

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.

View solution in original post

@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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,744)