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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,378)