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.

@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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,018)