web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / unable to concat URL &...
Power Automate
Answered

unable to concat URL & Coordinates value as one URL

(0) ShareShare
ReportReport
Posted on by 9

Hello,

 

I am building a flow where an adaptive card is posted on teams when a new record is created in SP list.

 

For this purpose I need to make a provision wherein a clickable link is embedded in the adaptive card, clicking on which will take the user to Google Maps with the coordinates as an input.

 

There are 2 parts of the concat expression:

1) This part of the URL: https://www.google.com/maps/search/

2) Coordinates fetched from SP list (xx.xxxxxxxx,xx.xxxxxxxx)

 

I want to concat these together but always there is space appearing:

https://www.google.com/maps/search
2x.5487xxxx,4x.xxxx8473

 This is rendering the link to work partially.

 

Any help would be greatly appreciated.

Categories:
I have the same question (0)
  • PrasadAthalye Profile Picture
    on at

    Can you use Compose and build expression like below? I am using Title field from SP List and Get Items action and that is why apply to each. You can use yours. If you are using just Get Item you don't need apply to each.

     

     

    concat('https://www.google.com/maps/search/', items('Apply_to_each')?['Title'])

     

  • Verified answer
    cyint Profile Picture
    9 on at

    So I was able to get it work.

    There was a '/r' which I missed to escape, causing the coordinates to move to next line thereby causing the split in URL.

     

    This is the code I used: 

    uriComponentToString(replace(uriComponent(outputs('Compose_5')), '%0D', ''))

    Now the URL is working as it should.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard